Basic Cumulus Category Assignment
Basic Cumulus Category Assignment
- Subject: Basic Cumulus Category Assignment
- From: email@hidden
- Date: Tue, 8 Oct 2002 06:14:22 -0500
I know this is simple but I'm new to scripting Cumulus (or using it at all)
and have wasted too many hours on this.
I want to add a record and immediately assign it to a category. This is
what I have:
-- begin script -------------------------------------------------------
property filePath : "Disk o' Dan:myFile"
tell application "Cumulus S5.0"
tell front collection
set catName to "myCategoryName"
make new category at end with properties {name:catName,
parent:0}
-- This successfully adds the file to the collection.
set newRecord to catalog assets alias filePath to it
-- At this point I want to assign the record to the category.
-- How do I do this? The "Categories" field isn't recognized.
field "Asset Name" of newRecord -- this is fine, but
field "Categories" of newRecord -- I get "field not found"
error on this
-- so if I say
set field "Categories" of newRecord to category catName
-- the entire line is highlighted and I get "unknown AppleEvent
error"
end tell
end tell
-- end script -------------------------------------------------------
I notice that I have no problem accessing and manipulating the "Categories"
field for an already-populated database.
Is this even the approach to take? (I've turned off Directory Categories so
that I can replicate a different hierarchy.)
Thanks very much for your time... I wouldn't bother the list if this wasn't
so hot...
Dan T.
_______________________________________________
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.