3 Replies Latest reply on May 14, 2011 3:05 AM by Phil-Andrews

    Continue or Cancel alert dialog within JSX



      Sorry folks another newbie here - both to scripting and pshop scripting. So please excuse such a basic question but I am having a little trouble with an alert box that I added to top of some javascript I grabbed from the listener.




      I want to be able to display an alert dialog to the user asking them to ensure their image meets certain requirements before continuing. Something like 'make sure your image is like this before continuing. Continue or Cancel'. When the user hits the continue button the rest of the javascript runs but if they hit the cancel button the script is aborted.






      All I have been able to do is show a dialog before the script starts and then instruct the user to hit Okay to continue and press the ESC key to abort. Not very elegant and only works on Windows not Mac machines.


      Any help or ideas would be fab.