[OSX-Users] any applescript experts there?
Leslie Carr
lac at ecs.soton.ac.uk
Mon Mar 16 07:56:31 GMT 2009
I am trying to create a script to run from the commandline (via
osascript) that uses the Image Events app to scale down an image.
on run argv
tell application "Image Events"
launch
set this_image to open item 1 of argv
set sf to item 2 of argv
scale this_image by factor sf
save this_image
close this_image
end tell
end run
Each time I try and run it, it says that the variable this_image is
undefined. Which it clearly isn't!
The frustrating thing is that it worked for about an hour yesterday,
and then stopped working. I can't find out what changed, and without
resorting to fixed file aliases in the code I can't get it to work
again now.
Can anyone offer any insight?
--
Les
More information about the Osx-users
mailing list