hi, i’ve been banging my head against a wall for a day trying to figure out how to code something. bear in mind i’m relatively new to applescript (but not to programming)
i’m trying to write a script to work with the movie compression application ‘Cleaner 6’ (used to be made by Terran, now by Autodesk)
i can add files to the batch in Cleaner to compress, but i need to set their folder destinations and i can’t figure out what the syntax is to do so, i know its got to be simple, but i’m still hazy on how applescript handles classes and properties (i Think thats what i need to work with)
the dictionary entry for the app has this entry:
(C) SetItemCustomDestination‚v
SetItemCustomDestination [DefaultLocation/FTPLocation/FolderLocation]
[CustomLocation string]
[CustomName string]
the only documentation that is available says this:
Changes custom location options for selcted batch items
[DefaultLocation / FTPLocation /FolderLocation ] – the type of custom destination
[CustomLocation string ]-- the name of the custom destination
[CustomName string]-- custom name of the output file
i know what item is selected, i just need some suggestions on syntax before i pull all my hair out.
my current script that works is this (it only adds the file to the batch and compresses it to Cleaner’s default destination…
set fileToAdd to "WS2:temp:dor_twain.mov"
set fileToAddAlias to alias fileToAdd
tell application "cleaner 6"
Clear
Add fileToAddAlias
Setting {"sd_hi_640x480"}
Start encoding
end tell
thank you soooo much if you can help or give any suggestions on syntax.
i’ve tried things like:
SetItemCustomDestination with properties { CustomLocation : “HD:temp”, CustomName : “compressedMovie.mov” }
thanks in advance!
-dan
if anyone has any Cleaner applescript examples i’d love to see them. autodesk didn’t put any online after they bought the software from Terran)