Wednesday, September 2, 2015 at 6:22 AM

Launching a Mac app from Node?

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.

The question

Is there a way to make system calls to the Mac OS from Node that allow you to:

  1. Tell if an app is still running.

  2. Launch an app.

Any help much appreciated.

PS: Cross-posted on Facebook.

Update

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.


Last built: Thu, Sep 17, 2015 at 4:33 PM

By Dave Winer, Wednesday, September 2, 2015 at 6:22 AM. You should never argue with a crazy man.