Page 1 of 1

Running second script when first script fails?

PostPosted: Mon Oct 26, 2020 6:54 pm
by erostratus
I have a Hazel rule that runs an AppleScript script. The script uses theFile variable but doesn't return anything. Sometimes, the AppleScript will fail when the app it references is unresponsive. Is it possible for me to then run a shell script if the AppleScript fails? Thanks!

Re: Running second script when first script fails?

PostPosted: Tue Oct 27, 2020 10:54 am
by Mr_Noodle
There's no mechanism for that but why not work the script to handle the failure itself?