Question regarding adding a script to a Photoshop Action
Hi, to preface this conversation I am quite new to scripting. I have added a few scripts to Photoshop actions in the past however when I try to run the below script using the File>Script>Browse feature to add it as part of an action. The script runs succesfully once, but when I try and play the whole action again it says it cannot find the jsx file.
I want the script to check that if either the height or width are over 2000 pixels to run one action and if neither are above then it should run another action.
This script is coming up with the 'Name:""'' section below it in the action menu. Which I have never seen before but I am guessing is due to something wrong with the script?
Screenshot of the script as it appears in the Photoshop Action:

And then the Script itself:
