News for hackers. Stuff that matters.
Re:JavaScript for OS X Automation by linguafranca on Wednesday September 17, 2014 @09:56AM (#8329932)
I think you're misreading the document, I don't think you actually have to instantiate an NSTask in order to compare whether another application is running. You would just do something like this:

  Mail = Application('Mail')
  if (Mail.isRunning) { ... }

There are no comments on this comment yet.