I've tried to use 'Perform Applescript' and I can dynamically populate the file path for the file to open and the action to perform BUT
My syntax is out somehow.
with the following script
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"
I keep getting the error
'Expected end of line, etc. but found identifier.'
with "action" highlighted.
In a previous version of Photoshop this is working:
tell application "Adobe Photoshop CS6"
do action "Crop Photo" from "DB Actions"
do action "Make Std Adjustments" from "DB Actions"
do action "Wood Frame - 50 pixel" from "Default Actions"
This appears to be related to version compatibility. I wonder if the PS CC 2014 dictionary was at fault.
I updated to Photoshop CC 2015 and the problem immediately resolved.
Looks like my syntax was ok.
interesting in that when I tried to add the dictionary for CC 2015 it says that is can't be scripted by applescript....
If your Applescript uses CC 2014 in the TELL it seems to work with whichever version is open...
But I also learned something today...
Ah no sorry perhaps I was unclear.
I used PS CC 2015 in the TELL in the working script.
Actually that just got weird...
I have both installed. But -
It doesn't matter what I put in the tell (2014 or 2015) it always opens CC 2014...