Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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

Posted on Oct 23, 2012 9:18 AM

Reply
3 replies

Trying to set global login items

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.