Skip navigation

Trying to set global login items

603 Views 3 Replies Latest reply: Oct 25, 2012 7:18 AM by Ben-LabManager RSS
Ben-LabManager Calculating status...
Currently Being Moderated
Oct 23, 2012 9:18 AM

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

Actions

More Like This

  • Retrieving data ...

Bookmarked By (1)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.