How to quickly add entry to “log in item” OS X 10.9.x

If you need to quickly add a log in item to several Mac’s via ARD (Apple Remote Desktop), here is a quick script to run:

osascript -e ‘tell application “System Events” to make new login item at end with properties {path:”/Applications/File.app“, name:”Servers”, hidden:false}’
Notes:
Run it as the user, not your admin account.
File.app is the app you wish to start on log in.
If hidden is “true” the user will not be able to remove it from log in items.
Source: http://www.synergychen.com/2014/02/07/how-to-manage-login-items-in-osx-with-command-line/

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.