Save As JPEG in AppleScript
Trying to Save a PSD file as JPEG using the script from the Adobe scripting documentation.
The following code opens the standard Save As dialog box rather than simply saving the file, I am missing something ... but what??!
tell application "Adobe Photoshop CC"
set theDocument to current document
set myFile to "Macintosh HD:Users:peterrhawkes:Desktop:MH.jpg"
set myOptions to ¬
{class:JPEG save options, embed color profile:true, quality:12} ¬
save theDocument in file myFile as JPEG with options ¬
myOptions appending no extension without copying
end tell
