Some times when you install applications they also add them selves to the login items.
This means they will startup when you login to your account. Which in some cases is not desirable.
Someone asked on Stackoverflow how to stop this.
I posted two approaches.
- Lock the login items preference file. items preference file.
- Get notified when there is a change to your login
The script was limited to one master app. The one that if running or not determines if the slave app launches or quits.
This new script allows you to add as many apps to the master app list and also to the slave list.
A simple use of Applescript to get PID (unix id of processes ) and kill one Application if another is not running.
But heres a better example..
Continue reading “Applescript – Quit or Launch Application if another is or is not running”