21.10.2010 13:07 Uhr, Quelle: The Unofficial Apple Weblog

Terminal Tips: bash cron script to keep an app running

Do you have some apps that you want to keep running all the time? If so, and if you're not afraid of the Terminal or the command line, I have a script for you. When I come home at the end of the day, Dropbox has stopped running on my iMac. I'm running the latest version, and it works fine on my MacBook Pro, but for some reason, this just keeps happening. The script has nothing to do with Dropbox itself; you could substitute any app that you always want running, such as LaunchBar, OmniFocus, 1Password, or any other app that you like. It's fairly simple: #!/bin/sh PATH=/bin:/usr/bin # Change 'Dropbox' to whatever app you want. Be sure to capitalize # it correctly and include any spaces. You do not need to add .app APPNAME="Dropbox" # if the app na

Weiterlesen bei The Unofficial Apple Weblog

Digg del.icio.us Facebook email MySpace Technorati Twitter

JustMac.info © Thomas Lohner - Impressum - Datenschutz