Adding a startup item for all users

noah_swanson
New Contributor

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 5

Jak
New Contributor III

Mcx?

noah_swanson
New Contributor

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?

tlarkin
Honored Contributor

launchd or modify the user template are my 2 best answers

-Tom

bentoms
Release Candidate Programs Tester

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

Regards,

Ben.

rgerman
Contributor

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