Re: Scripting Canto Cumulus 5.010
Re: Scripting Canto Cumulus 5.010
- Subject: Re: Scripting Canto Cumulus 5.010
- From: What does not kill you only makes you stronger <email@hidden>
- Date: Wed, 31 Oct 2001 18:26:00 -0600
on 10/31/01 6:37 AM, email@hidden wrote:
>
It seems like my script is OK now, but I still have some issues with it,
>
where Canto didn't think it through (IMHO). Did any of you guys figure this
>
one out...
>
>
If you Catalog assets [aFile] and this file IS logged in, it returns
>
_nothing_, try this...
>
>
Set aFile to "Macintosh HD:yourimagehere.jpg"
>
repeat 2 times
>
tell application "Cumulus 5 client"
>
set catref to catalog assets aFile to front collection
>
end tell
>
if catref "" Then beep
>
end repeat
>
>
On my mac this script run fine the first time, the second time catref is not
>
initialized and it errors out. ! Otherwise I could use this to see if a
>
asset were logged in, but instead it fails and I have to assume that it were
>
logged in, sucks big time.
I always run a query on the image name before cataloging. Cumulus allows
files to be cataloged multiple times, and I prefer to only have 1 instance
of any one file name in the database.. That is my preference though, as
there may be instances where a user would not want this.
The results the above script returns is probably what Canto meant to do,
but I agree that it should return something more than "". Knowing that
though, you can trap and recognize "" as you did above. Every application
seems to have their subtle gotchas...
Also, let me add to that last message I sent : *I would also like to have
the ability to DISABLE/ENABLE user interaction through a script. (IE: Stop
all mouse and keyboard events in that application.) * Perhaps have
application user interaction restored on releaunch so as not to really mess
an application up. : )
Nate
activate
display dialog "H A P P Y H A L L O W E E N !" giving up after the blue
moon has peaked-- Or the Great Pumpkin has risen..