Skip to main content
sz20044
Known Participant
June 22, 2019
Question

Applescript Photoshop Automate Batch

  • June 22, 2019
  • 1 reply
  • 486 views

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.

This topic has been closed for replies.

1 reply

Bob_Hallam
Legend
June 22, 2019

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.

ICC programmer and developer, Photographer, artist and color management expert, Print standards and process expert.
sz20044
sz20044Author
Known Participant
June 22, 2019

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.

Bob_Hallam
Legend
June 22, 2019

It may be best then to ask this in the scripting forum

ICC programmer and developer, Photographer, artist and color management expert, Print standards and process expert.