I want to stop the script from running if it cannot find a specific image. For example:
if imagefound (“Blah”) then
Stop the application from running
I am currently using the “PauseScript” command, but this will not work if I run the script via command line.
depending on what you want, and whether this is in a script that’s called by another script. The “exit script” command is basically equivalent to “return” – it will exit the current script, but continue running in the script that called it. “Exit all” will terminate script execution altogether.