Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Might I suggest that Automator might be a better option for this process for a novice scripter? Check out http://www.robotphotoshop.com/?page_id=8
For some examples of what this site has and I'm sure you can get some public Automator information and do this easily.
Copy link to clipboard
Copied
Thanks but I prefer not to. Ultimately the above AppleScript is being called by python. I just need help in getting it right which is why I asked specifically for it.
Copy link to clipboard
Copied
It may be best then to ask this in the scripting forum
Find more inspiration, events, and resources on the new Adobe Community
Explore Now