Created
April 17, 2018 21:06
-
-
Save jmsmrgn/cc0f15c9d733ff14fca7984935cc0014 to your computer and use it in GitHub Desktop.
Manipulate login items from command line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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