Skip to main content
Participant
April 15, 2016
Question

Open a png file with photoshop CC 2014 and perform an action on it using applescript

  • April 15, 2016
  • 1 reply
  • 620 views

Hello,

I am trying to create an applescript to open a file in photoshop and then perform an action on it.

I tried using PS droplets but applescript couldn't seem to find them.

Here's my latest attempt

tell application "Adobe Photoshop CC 2014"

  set myFilePath to "Macintosh HD:Users:ThisUser:Desktop:123.png"

  open alias myFilePath

  do action "Wood Frame - 50 pixels" from "Default Actions"

end tell

But I get this error highlighted on "action"

Expected end of line, etc. but found identifier.

I'm brand new to applescripts so please assume you are communicating with a simpleton who needs everything spelled out slowly.

Thanks,

Chancevet

This topic has been closed for replies.

1 reply

Inspiring
April 17, 2016

Try this.

tell application "Adobe Photoshop CC 2014"

           set myFilePath to "Macintosh HD:Users:ThisUser:Desktop:123.png"

           open alias myFilePath

           #Need to instruct Photoshop on which document to act on

           set myDoc to document 1

           tell myDoc

                      do action "Wood Frame - 50 pixels" from "Default Actions"

           end tell

end tell

hthy

greenrookie