Photoshop CS5 Applescript
Hi there. I am trying to figure out whit this script works with CS4 however using the same action and the exact same script with CS5 it no longer works. Help?
This is the script.
on adding folder items to thisFolder after receiving theseFiles
tell application "Finder"
-- move psd files to temp folder
repeat with thisFile in theseFiles
if name extension of thisFile is "psd" then
move thisFile to folder "temp" of thisFolder
end if
end repeat
set thePSDFiles to every file of folder "temp" of thisFolder as alias list
set saveFolder to (folder "save" of thisFolder) as text
end tell
tell application "Adobe Photoshop CS5"
launch
repeat with thisFile in thePSDFiles
open thisFile showing dialogs never
tell current document
do action "CROPFLATTEN" from "SYMPA" -- action and set name, case sensitive
save in (saveFolder & name) as PNG with copying
close saving no
end tell
end repeat
end tell
tell application "Finder"
-- move .psd files left in temp folder to save folder
move thePSDFiles to folder saveFolder
end tell
end adding folder items to
