|Nov 20, 2005, 08:28 PM||#1|
Rotating Images with Applescript
I've got an Applescript that rotates my photo's counter clockwise 90°, but there is a slight problem with it. Problem is that if I drag my images to the script I get the error The variable theImage is not defined. I can press Edit or OK. If I press Edit then compile and save I can drag and rotate my pictures fine. But I always have to edit/compile/save first.
Could use some help. Code below.
on open theFiles set theFiles to theFiles as list repeat with aFile in theFiles set aFile to aFile as alias tell application "Image Events" set theImage to open aFile rotate theImage to angle 270 save theImage in aFile close aFile end tell end repeat end open
Last edited by Cooknn; Nov 21, 2005 at 01:31 PM.
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Rotating Images in Mac and Windows||DeafRaiders||Digital Photography||0||Dec 1, 2013 01:09 PM|
|AppleScript: How do I save multiple Excel sheets to one pdf using Applescript||sbtaylor1||Mac Programming||0||Oct 29, 2013 12:38 AM|
|AppleScript: How do I save multiple Excel sheets to one pdf using Applescript||sbtaylor1||Mac Applications and Mac App Store||0||Oct 29, 2013 12:32 AM|
|Applescript to rename all new images||BobRon||Mac Programming||2||Aug 11, 2013 09:57 AM|
|How can Automator or Applescript rotate 500,000 images in folders and subfolders.||ludwip||Mac Programming||2||Dec 1, 2012 11:27 AM|
All times are GMT -5. The time now is 05:11 AM.