Script to add app to open at login

areai51

Registered
Hi,
I'm writing a postflight script that's supposed to add my app to the loginwindow.plist..

I mean basically after installation my app should open at login.
I just cant seem to find the script to get this ..
can someone help me with a shell script that would add my app to Open at Login?

Thanks in Advance
V
 
defaults write ~/Library/Preferences/loginwindow AutoLaunchedApplicationDictionary -array-add '{Path = "/Applications/TextEdit.app" ; }'
 
Back
Top