Running second script when first script fails?

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

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!
erostratus
 
Posts: 1
Joined: Mon Oct 26, 2020 6:50 pm

There's no mechanism for that but why not work the script to handle the failure itself?
Mr_Noodle
Site Admin
 
Posts: 11868
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support