Re: Cumulus Droplet with comments?
Re: Cumulus Droplet with comments?
- Subject: Re: Cumulus Droplet with comments?
- From: What does not kill you only makes you stronger <email@hidden>
- Date: Wed, 14 Mar 2001 22:33:28 -0600
on 03.14.01 5:02 PM, email@hidden wrote:
>
Greetings, ScriptWarriors!
>
>
I need to take my finder comments scripting to the next level [many, many
>
thanks, Michelle, for your previous lessons. This grasshopper is grateful.]
>
>
I need my droplet to do this:
>
>
I drop a folder of photo files, usually tiffs, onto the droplet.
>
The finder gets the contents of each item's finder comments window and
>
passes it off to Cumulus.
>
Then, cumulus makes a new catalog, adds the photos to the catalog and sets
>
the "notes" field of each asset according to each photo's finder comments.
>
Here is a start, watch those wraps and other "mailing list gotcha's":
on open (folderList)
repeat with aFolder in folderList
tell application "Finder" to set itemList to every file of aFolder
repeat with thisItem in the itemList
tell application "Finder"
set itemName to name of thisItem
set itemComment to comment of thisItem
set itempath to container of thisItem as text
end tell
tell application "Cumulus S5.0"
--make new catalog? Best bet might be to duplicate an
existing premade catalog, then rename and open it. Sort of a template
catalog - if you will..
set kCollectionOne to (a reference to collection 1)
catalog assets (thisItem as alias) to kCollectionOne
set theQuery to " record name is " & itemName
find every record of kCollectionOne matching theQuery
set kRecordID to ID of every record of kCollectionOne
set value of field "Notes" of record id kRecordID of
kCollectionOne to itemComment
end tell
end repeat
tell application "Cumulus S5.0" to close collection 1
end repeat
end open
There are many example scripts in "Cumulus 5 Single User Edition:Menu
Commands". Also, be sure to check out Canto's excellect 52 page "Cumulus 5
& AppleScript" PDF.
*I wish other software companies would follow in Cantos' footsteps when it
comes time to provide documentation..
Have fun!
Nate