[ANSWERED] auto re-open Isadora on crash when computer does not crash
-
Hi all,
I would like to set up an Isadora file to automatically re-open when Isadora crashes, but the computer does not crash (on a mac). I saw this post from 2012: https://community.troikatronix...
Is this still the best way to do it with Isadora 4 and Sequoia?
Thank you! -
Yeah, basically. Here's a slightly different version that lets you set the application name while making the restart application yourself (in case you edit the name of the application to include the version name, or if you're using "Isadora USB Key" instead of "Isadora"):
Step 1: Create the AppleScript
- Open Script Editor (⌘ + Space → Type "Script Editor" → Enter).
- Click File > New.
- Copy and paste this AppleScript:
property appName : "Isadora" -- Set the application name here on idle tell application "System Events" set isRunning to (count of (every process whose name is appName)) > 0 end tell if isRunning is false then tell application appName to activate end if return 5 -- Check every 5 seconds end idle
- Click File > Save.
- Choose a name (e.g., Re-Open Isadora.app).
- Set File Format to Application.
- Enable Stay open after run handler.
- Save it to your Applications folder (or another preferred location).
Step 2: Grant Accessibility & Automation Permissions
2A. Grant Accessibility Permissions
- Open System Settings.
- Go to Privacy & Security > Accessibility.
- Click + (Add).
- Navigate to where you saved your script application (Re-Open Isadora.app).
- Select it and click Open.
- Make sure the toggle next to it is ON.
2B. Grant Automation Permissions
- Run the script once (double-click the .app file).
- macOS will prompt you to grant permissions to "System Events".
- Click OK.
- If the permission prompt does not appear:
- Open System Settings > Privacy & Security > Automation.
- Find "Re-Open Isadora" in the list.
- Ensure it has permission to control System Events.
Step 3: Set the Script to Launch at Login
To have the script automatically start when you log in:
- Open System Settings.
- Go to General > Login Items.
- Click the + (Add) button.
- Navigate to the location where you saved Re-Open Isadora.app.
- Select it and click Open.
- Ensure the toggle next to it is ON.
Step 4: Test & Verify
- Quit Isadora if it is running.
- Run Re-Open Isadora.app manually to check if it starts Isadora.
- Close Isadora again—within 5 seconds, it should automatically reopen.
- Restart your Mac to confirm it launches at login.
-
Thank you! I will give this a try. Much appreciated!
-
Works! Thank you again.
-
I just turned this into an Add-On: https://troikatronix.com/add-ons/auto-re-launch-isadora-macos-applescript-for-installations/
It's basically the exact same as what I have here but I also provided the link to my macOS Isadora Production Computer Setup Guide