Add app to OSX “Login Items” during a Package Maker installer postflight script

Here’s the options I investigated and experimented with: Option 1: Use Login Items This is the method I used. It’s very easy to do from a bash file by adding the following line to your postflight. defaults write /Library/Preferences/loginwindow AutoLaunchedApplicationDictionary -array-add ‘{Path=”/Applications/Your Application.app”;}’ Note: You don’t even have to worry about adding duplicates if you … Read more