title: OSX 10.8 LoginItems
body: <p>I found this <a href="https://stackoverflow.com/questions/6947925/add-app-to-osx-login-items-during-a-package-maker-installer-postflight-script/7643260#7643260">Add app to OSX &quot;Login Items&quot; during a Package Maker installer postflight script</a> but it doesn't appear to work in OSX 10.8?</p>
  
  <p>This is from the other question and works in everything else...</p>
  
  <pre><code>defaults write \
      /Library/Preferences/loginwindow \
      AutoLaunchedApplicationDictionary \
      -array-add '{ "Path" = "/path/to/script"; "Hide" = "0"; }'
  </code></pre>
  
  <p>How can I add my app to loginItems in OSX Mountain Lion (10.8)?</p>