Re: Adding assets from a network volume?
Re: Adding assets from a network volume?
- Subject: Re: Adding assets from a network volume?
- From: Jed Verity <email@hidden>
- Date: Tue, 10 Apr 2001 09:31:17 -0700
Hi T.J.,
I used the below script to catalog from networked HFS+ and HFS volumes with
no problem:
--begin script
tell application "Finder"
activate
set itemList to every file of folder (choose folder)
repeat with aktItem in itemList
set itemComment to comment of aktItem
set theasset to name of aktItem
my CatalogIt(aktItem, itemComment)
end repeat
end tell
to CatalogIt(aktItem, itemComment)
tell application "Cumulus S5.0"
activate
set recID to (catalog assets (aktItem as alias) to front collection)
tell recID
set value of field "Notes" to (itemComment as text)
end tell
end tell
end CatalogIt
--end script
What exactly is the error message you get? Also, what kind of file systems
do you have on the networked volumes (are they FAT, NTFS, etc.)?
Hope I can help...
Jed
On 4/10/01 7:33 AM, you wanted me to know this:
>
tell application "Finder"
>
activate
>
set itemList to every file of folder (choose folder)
>
repeat with aktItem in itemList
>
set itemComment to comment of aktItem
>
set theasset to name of aktItem
>
tell application "Cumulus 5 Client"
>
activate
>
set recID to (catalog assets (aktItem as alias) to front
>
collection) -- this is the line that comes up in debug
>
tell recID
>
set value of field "Notes" to (itemComment as text)
>
end tell
>
end tell
>
end repeat
>
end tell
~)~)~)~)~)~)~)~)~)~)~)~)~)
Jed Verity