Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Applescript Photoshop Automate Batch

New Here ,
Jun 21, 2019 Jun 21, 2019

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.

479
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Guide ,
Jun 21, 2019 Jun 21, 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.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 21, 2019 Jun 21, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Jun 21, 2019 Jun 21, 2019
LATEST

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.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines