Could not complete the command because Photoshop was unable to find the JavaScript file.
Hello,
I am getting the message...
"Could not complete the command because Photoshop was unable to find the JavaScript file."
This happens when I try to run a script that will detect if the active document is Landscape or Portrait.
The script works just fine when used manually, and even when I record it into an action. But when the
action is tested it gives this error message.
I have called adobe but they said it's a script issue so they cannot help me.
I have many other actions using the exact same script that work just fine so I have no idea
what is wrong.
I recently added the #target photoshop part at the front of the script
and that seemed to work for awhile but now even that is not helping it.
Any help is greatly appreciated, here is the script....
#target photoshop
var doc = app.activeDocument;
if(doc.width.value>doc.height.value){//Landscape
doAction("AddHorBack", "Automations");
}else{//Portrait
doAction("AddPortBack", "Automations");
}
