MacOS – Alert me when a certain app/process isn’t running

macosnotifications

Is it easily possible to have some sort of cron job or something run on my Mac that alerts / notifies me when a certain program isn't running?

I use an app last.fm, and since it doesn't run in my dock I don't notice that the process might not be running any more.

Best Answer

I ended up writing a simple applescript and creating a cronjob to run it every 10 minutes.

When Last.fm is not running, this launches it. when it is running, it does nothing.

AppleScript:

tell application "Last.fm" to run

Cronjob

*/10 * * * * osascript /Users/Jacob/Documents/AppleScripts/LastFMRunning.scpt