ImageReady scripting WAS:Scripting dropping a file onto a droplet
ImageReady scripting WAS:Scripting dropping a file onto a droplet
- Subject: ImageReady scripting WAS:Scripting dropping a file onto a droplet
- From: Paul Skinner <email@hidden>
- Date: Mon, 16 Apr 2001 12:03:50 -0400
on 4/13/01 10:18 PM, Brian wrote:
>
Thanks to all who helped me figure this out!!!!! Despite Adobe's limited
>
Applescript support this script to run an Image Ready droplet externally
>
works! See code below.
SNIP!
>
My plan was to use something like:
>
>
set the label index of every item of ToDo_list to 3
You can't label a list. Label the items in the finder.
tell application "Finder"
set the label index of every item of alias "dark star:Desktop
Folder:untitled folder:" to 6
end tell
In your case you'd want to loop through your list and build a reference to
an item with the alias and appended filename, Then set the label on it.
>
but the syntax isn't right.
>
>
Any suggestions?
>
>
Also the repeat loop that opens every file fires up the droplet many times
>
which doesn't seem to hurt anything but may well hurt performance? Any
>
thoughts?
See below.
>
Again many thanks-
>
>
I think I'm beginning to like Applescript!
>
>
brian
>
>
Code follows:
SNIP....
If you read IR dictionary it's cryptic and calling tech support wont
help.
do script <STRING> with <ALIAS>
<STRING> name of action or actual script text to execute.
<ALIAS> List of files on which to run script text ( not supported when
supplying an action name, required when specifying script text)
Apparently no one at Adobe knows ( cares? ) how their scripting works if
you actually try to use it.
After about a million minutes of hold time and being bumped up to level
heaven-minus-one tech support; I got diddly from them.
I told them a year and a full version ago that I found that it works
like this...They confirmed but seemed confused, amused.
1 Make an action.
2 Save that action as a droplet.
3 Find the '.isa' file that represents the action.
4 Call the '.isa' file via the 'Do Script' command in Imageready's
dictionary.
--begin script-----------------------------------------
--multiple wraps follow...
set iractionalias to "macintosh HD:Applications:graphics:Adobe.
Photoshop. 6:Adobe Photoshop 6 Settings:ImageReady Actions:thinkthumb.isa"
as alias
tell application "Adobe ImageReady 3.0"
activate
with timeout of 100 seconds
do script (iractionalias) with {(yourFileReferenceHere) as alias}
end timeout
end tell
--end script-----------------------------------------
NOTE! The second element of the Do Script command is a list. If you feed it
100 items it will perform the action on all 100 in one pass. Displaying dual
progress bars and all that. Be sure to consider processing time in a timeout
statement.
--
Paul Skinner