How to wait for an app to quit in a macOS bash script
Shortcuts now runs on macOS since the Monterey release and there’s always been AppleScript as well. However, I just still prefer the simpler bash scripts for all the automation of tasks. You can pretty...