Skip navigation

Applescript and Photoshop batch

547 Views 5 Replies Latest reply: Feb 11, 2013 1:06 PM by LeCastello RSS
LeCastello Level 1 Level 1 (0 points)
Currently Being Moderated
Feb 11, 2013 5:28 AM

Hi there. Im trying to use applescript with photoshop but it's not working.

 

When I run it, the photoshop dialog box opens and it doesn't work. I tryed to set the display dialogs to never but it's still not working.

 

Does anybody knows what should I do ? Thanks !!

 

 

 

set pasta_origem to choose folder with prompt "Select original folder:"

set pasta_destino to choose folder with prompt "Select target folder:"

set fileToLog to (pasta_destino as string) & "Photoshop_Batch_Errors_Log.txt"

 

 

tell application "Finder"

          set PhotoshopFiles to document files of pasta_origem as alias list

          if not (exists file fileToLog) then

                    make new file at pasta_destino with properties {name:"Photoshop_Batch_Errors_Log.txt"}

          end if

end tell

tell application "Adobe Photoshop CS6"

  launch

          set display dialogs to error dialogs

  batch "13 x 19 + sharpen" from "Ações CFotos" from files PhotoshopFiles with options {destination:folder, destination folder:pasta_destino, error file:alias fileToLog, windows compatible:true, file naming:{document name lower, extension lower}, suppress open:true, override save:true}

end tell

  • softwater Level 5 Level 5 (5,370 points)
    Currently Being Moderated
    Feb 11, 2013 5:34 AM (in response to LeCastello)

    What messages are given in the Replies pane at the bottom of the editor when you run it?

  • softwater Level 5 Level 5 (5,370 points)
    Currently Being Moderated
    Feb 11, 2013 7:16 AM (in response to LeCastello)

    I ran your script on my machine and it proceeded fine with choosing the dialogue boxes, and creating the 'Photoshop_Batch_Errors_Log.txt' file, but it balked at the 'batch' command.

     

    That's because I don't have Photoshop CS6 (I changed your script to CS5, which I have), and it just gave the error 'this function may not be available in CS5'.

     

    Try replacing 'launch' with 'activate' in the final block, e.g.,

     

    tell application "Adobe Photoshop CS6"

      activate

      set display dialogs to error dialogs

      batch "13 x 19 + sharpen" from "Ações CFotos" from files PhotoshopFiles with options {destination:folder, destination folder:pasta_destino, error file:alias fileToLog, windows compatible:true, file naming:{document name lower, extension lower}, suppress open:true, override save:true}

    end tell

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.