• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Scripting Canto Cumulus 5.010
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Thu, 01 Nov 2001 21:24:00 -0600

on 11/01/01 2:23 AM, email@hidden wrote:

> Hi Nate
>
> The problem with Cumulus and logging existing assets, is that it seem that
> Cumulus simply DESTROY the var that I use.
>
> Set thevarimean to catalog assets putyourfilehere to front collection
>
> If the file is already logged in the db, then thevarimean is simply
> destroyed, I can't figure out how to test it. I use SD2.05 and in debugging
> mode it seems like the varimean simply vanishes from the app. ?
>
> Have you seen this before ?

Like I stated earlier, it might be better to just put the query in front
and check for the asset, but I created this based on what I thought you
would want. (And that made it a bit longer than I prefer. ; )

Watch those line wraps, etc..

Nate

on run
set putyourfilehere to ("TruBlue:Desktop Folder:SomeFile.eps" as alias)
tell application "Finder" to set kAssetName to name of putyourfilehere

tell application "Cumulus 5 Client"
activate
catalog assets putyourfilehere to front collection
try
set xyz to (result as string)--test
set kNotesValue to "Asset Is New."
tell front collection to set kSelections to a reference to
selection as list

on error
beep
activate
display dialog "Asset " & kAssetName & " already exists in
database."

set kQuery to "Asset Name" & tab & "is" & tab & kAssetName
set kQueryResult to find every record of front collection
matching kQuery with new search
if kQueryResult > 0 then
set selection to record 1 of front collection
tell front collection to set kSelections to a reference to
selection as list
set kNotesValue to "Asset existed, and was located."
end if

end try

if (count of kSelections) = 1 then
repeat with kSelection in kSelections
tell front collection to set value of field "Notes"
of kSelection to kNotesValue
end repeat
end if
end tell
end run


References: 
 >Re:Scripting Canto Cumulus 5.010 (From: Mark Bjærgager <email@hidden>)

  • Prev by Date: Re: How to react to browser window-name
  • Next by Date: Is the Network control panel scriptable?
  • Previous by thread: Re:Scripting Canto Cumulus 5.010
  • Next by thread: OSX Applescript and remote applications?
  • Index(es):
    • Date
    • Thread