|
|
#1 |
|
Add login items script
Is it possible to add an application to the login items of a user account using a script? I was going to have an installer for my little program and I think that it would make it easier for users if they didn't have to add it themselves. This works but it would then be difficult for the user to uninstall the application.
Thanks in advance, Andrew |
|
|
|
0
|
|
|
#2 |
|
Code:
set appPath to "/Applications/MyProgram.app"
tell application "System Events"
make login item at end with properties {path:appPath, hidden:false}
end tell
|
|
|
|
0
|
|
|
#3 |
|
As an alternative, save the script as an application and add it to your login items in the system preferences. That way, the program does not inheriently start up at login, I'm not a big fan of that myself.
|
|
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| thread | Thread Starter | Forum | Replies | Last Post |
| Applescript Question---- Add to login items | jjordanlam | Mac Programming | 4 | Jan 22, 2011 03:29 PM |
| On Idle Script in Login Items Doesn't Stay Open | astrorider | Mac Programming | 0 | Nov 12, 2010 01:39 AM |
| Duplicate folder names on different servers will not add to login items | jiwald | OS X | 1 | Aug 20, 2010 11:32 AM |
| managed accounts cannot add login items | islandsnow | Mac OS X Server, Xserve, and Networking | 6 | May 29, 2008 10:29 AM |
| Add a volume to login items. | atmporsh911 | Mac Basics and Help | 3 | Oct 24, 2007 06:33 PM |
All times are GMT -5. The time now is 07:20 AM.







Linear Mode

