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

Applescript Photoshop Automate Batch

  • June 22, 2019
  • 1 reply
  • 3292 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

Participating Frequently
June 22, 2019

Bonjour

Here the scripts are rather directed javascript (.jsx) that Appelscripts .......

You can consider creating a Droplet or a command line file (Windows) ?

sz20044
sz20044Author
Known Participant
June 24, 2019

Where can I post to find people who utilize Applescript + Photoshop?  This is a pretty simple script... just haven't had the luck finding the best area to post it.

Tom Winkelmann
Inspiring
June 24, 2019

Here is the right place for your question, but most of us prefer Javascript, because you can use it under OSX and Windows...

Is there a specific reason why you want to use Applescript?