Posted on 10-26-2011 09:59 AM
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
Posted on 10-26-2011 10:05 AM
Mcx?
Posted on 10-26-2011 10:07 AM
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?
Posted on 10-26-2011 11:00 AM
launchd or modify the user template are my 2 best answers
-Tom
Posted on 10-31-2011 02:15 PM
I've an AppleScript app that runs at login for each user & it's launch is triggered by a launchagent.
Regards,
Ben.
Posted on 05-14-2012 11:46 AM
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