Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am entering the login item from the terminal but, this command is not working for me:

defaults write ~/Library/Preferences/loginwindow AutoLaunchedApplicationDictionary -array-add '{Path="/Applications/Your";}'

What am I doing wrong?

share|improve this question

I didn't have AutoLaunchedApplicationDictionary in ~/Library/Preferences/loginwindow.plist but only in /Library/Preferences/loginwindow.plist.

Most login items are stored in ~/Library/Preferences/ The paths are stored as alias data, but you can also add login items with AppleScript:

osascript -e 'tell application "System Events" to make new login item at end with properties {path:"/Applications/", name:"TextEdit", hidden:true}'

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.