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