Photoshop CC 2014 'do action' end of line error in applescript


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 pixel" 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 Applescripting so please assume you are communicating with a simpleton who needs everything spelled out slowly.


Hi. Welcome to the forum. It looks like you just didn’t copy the name of the action correctly; it should be singular”“Wood Frame - 50 pixel”.

Thanks for the reply.
When I fixed the typo it still did not work. I updated photoshop to PS CC 2015 and that got it going straight away.
Wonder if it was a dictionary issue?