Re: Cumulus records
Re: Cumulus records
- Subject: Re: Cumulus records
- From: "William M. Smith" <email@hidden>
- Date: Mon, 28 Jul 2003 20:41:03 -0500
>
Would anyone be able to send me a snippet of how to move a Cumulus record from
>
the main collection into a specific category?
Hi Steve!
This is a snippet of unedited code from a Cumulus 5 script I wrote a while
back. It's original purpose was to automatically organize a group of logos
by brand with each brand listed as a category. (Mind the line wraps...)
==================================
-- check "Brand" category and create new category & folder if needed
if fileUsage is "Logo" then
tell application "Cumulus 5 Client"
set categoryList to ""
try
set categoryList to name of every category of front
collection
end try
if categoryList does not contain theBrand then
set newCategory to make new category at end of front
collection with properties {name:theBrand}
set newCategory to ID of newCategory as list
else
set newCategory to (ID of every category of front collection
whose name is theBrand) as list
end if
end tell
end if
-- assign the record to the "Brand"
if fileUsage is "Logo" then
tell application "Cumulus 5 Client"
set value of field "Categories" of record thisRecord of front
collection to newCategory
end tell
end if
==================================
Hope this helps! bill
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.