applescript do javascript not working
Hello, friends.
Some applescript trouble.
First, given the assignment, this could be completely done in JS - but that's not the question. I'm interested in how to make AS work the way I expect it to.
I would like to know why this is happening here:
this works:
tell application "Photoshop"
do javascript ...
end tell
but this does not:
set myPs to "Photoshop"
tell application myPs
do javascript ...
end tell
I completely fail to see why it says "Expected end of line, etc. but found identifier." when it goes to "do javascript"