Applescript Photoshop Automate Batch
I am trying to make an applescript that will launch Photoshop and call the Automate Batch function. I have zero experience doing this and have only gotten snippets of code from my searching. I was wondering if someone could help me on this.. in particular if it is at all possible to pass a source folder to the batch call and then how to make the Batch call. Here is what I have so far, which I am pretty sure doesn't work:
set sourceFolder to "/Users/Joe/Desktop/Temp"
do shell script "echo Source Path is: " & sourceFolder
tell application "com.adobe.Photoshop"
activate
try
set Batch_Options to {class:batch options, source folder:sourceFolder, destination:save and close, error file:Error_File, file naming:{document name lower, extension lower}, macintosh compatible:true, override open:false, override save:true, suppress open:true, suppressprofile:true, unix compatible:true, windows compatible:true}
batch with options Batch_Options
end try
return "Done"
end tell
Any help is appreciated.
