Skip to content

Instantly share code, notes, and snippets.

View ChengLuffy's full-sized avatar
💭
(╯°□°)╯︵ ┻━┻

chenluffy ChengLuffy

💭
(╯°□°)╯︵ ┻━┻
View GitHub Profile
# applescript
# add login item
osascript -e 'tell application "System Events" to make login item at end with properties {name: "Notes",path:"/Applications/Notes.app", hidden:false}'
# delete login item
osascript -e 'tell application "System Events" to delete login item "itemname"'
# list loginitems
osascript -e 'tell application "System Events" to get the name of every login item'