Skip to main content
Question

Adding a startup item for all users


Forum|alt.badge.img+8

What's the best way to add a login item for all users? I'd put something like this in the login script (osascript -e 'tell application "System Events" to make new login item with properties { path: "/Applications/AppName.app", hidden:false } at end') but I'd rather this command was set once, to allow the user to disable it if they want.

Any suggestions?

Thanks,
Noah Swanson
Imaging Specialist
Enterprise Desktop Services
Phone: 309-765-3153
SwansonNoah at johndeere.com

5 replies

Forum|alt.badge.img+7
  • Contributor
  • 61 replies
  • October 26, 2011

Mcx?


Forum|alt.badge.img+8
  • Author
  • Contributor
  • 142 replies
  • October 26, 2011

I didn't see a template for it. I figured before I started guessing, I'd consult the masses.

Anyone tried this: http://hints.macworld.com/article.php?story040524113537447?


Forum|alt.badge.img+31
  • Honored Contributor
  • 2721 replies
  • October 26, 2011

launchd or modify the user template are my 2 best answers

-Tom


bentoms
Forum|alt.badge.img+35
  • Legendary Contributor
  • 4331 replies
  • October 31, 2011

I've an AppleScript app that runs at login for each user & it's launch is triggered by a launchagent.

Regards,

Ben.


Forum|alt.badge.img+7
  • Contributor
  • 36 replies
  • May 14, 2012

This shell script worked well for me... I set it as a login policy for specific users I wanted to have on iChat. Make sure to chmod +x on the script after you save it.

#!/bin/bash

# grab currently logged in user by checking ownership of /dev/console

CurrentUser=/bin/ls -l /dev/console | /usr/bin/awk '{ print $3 }'

# now open iChat

open /Applications/iChat.app

# exiting script

exit 0


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings