Trying to set global login items
I can't seem to figure out how to get an apple script to run at login for every user. I'm in a domain environment where any user out of thousands can come into the lab, and I want to reset a hand full of items every time they come in.
The script works fine when I run it normally; but I never see it execute at login.
I've tried sending from ARD:
(as an app)
defaults write /Library/Preferences/loginwindow AutoLaunchedApplicationDictionary -array-add '{ "Path" = "/Applications/preferences.app"; "Hide" = "0"; }'
defaults write /Library/Preferences/loginwindow AutoLaunchedApplicationDictionary -array-add '{ "Path" = "/Applications/preferences.app/Contents/MacOS/applet"; "Hide" = "0"; }'
defaults write /Library/Preferences/loginwindow AutoLaunchedApplicationDictionary -array-add '{ "Path" = "open /Applications/preferences.app"; "Hide" = "0"; }'
(as a script)
defaults write /Library/Preferences/loginwindow AutoLaunchedApplicationDictionary -array-add '{ "Path" = "osascript /Library/Scripts/preferences.scpt"; "Hide" = "0"; }'
This is all I could find with a Google Search. Is there a new command I must send?
Thanks