macos: manage add list remove login items apple script By 262588213843476 Archived: 2026-04-06 01:11:40 UTC Last active November 9, 2025 10:01 Star (51) Fork (10) macos: manage add list remove login items apple script # 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' # with defaults defaults write loginwindow AutoLaunchedApplicationDictionary -array-add '{ "Name" = "Notes" ; "Path" = "/Applications/Notes.app"; "Hide" = 0; }' Source: https://gist.github.com/kaloprominat/6111584 https://gist.github.com/kaloprominat/6111584 Page 1 of 1