Skip to content

Instantly share code, notes, and snippets.

@jmsmrgn
Created April 17, 2018 21:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmsmrgn/cc0f15c9d733ff14fca7984935cc0014 to your computer and use it in GitHub Desktop.
Save jmsmrgn/cc0f15c9d733ff14fca7984935cc0014 to your computer and use it in GitHub Desktop.
Manipulate login items from command line
osascript -e 'tell application "System Events" to get the name of every login item'
osascript -e 'tell application "System Events" to make login item at end with properties {path:"/Applications/Name of app.app", hidden:false}'
osascript -e 'tell application "System Events" to delete login item "itemname"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment