Back in 1999, I needed to keep Frontier running on a Mac server, so I wrote a little AppleScript that watched to see if the app was still running, and if not, launch it.
I need the same functionality today, but I'd rather use Node than AppleScript, if possible.
Is there a way to make system calls to the Mac OS from Node that allow you to:
Tell if an app is still running.
Launch an app.
Any help much appreciated.
PS: Cross-posted on Facebook.
Ted Howard posted a solution on the Frontier-User list.
It took a few tries but I got it working on my Mac.
Problem solved.