|
|
#1 |
|
Terminal run on startup command
Is there a command that anyone knows of that will make an application open on startup? I know how to do it manually, but can it be done from Terminal? Thanks.
|
|
|
|
0
|
|
|
#3 |
|
Sorry, I guess I was a little unclear. I'm wondering if there's an actual command that one can type in terminal that will make an application open at startup. For example, the command that hides files is
Code:
chflags hidden ~/yourfile/ |
|
|
|
0
|
|
|
#4 | |
|
Quote:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>local.example.safariopener</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/open</string>
<string>-a</string>
<string>/Applications/Safari.app</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
Last edited by LPZ; Jan 26, 2013 at 05:34 AM. Reason: Fixed error by adding .plist to file name. |
||
|
|
1
|
|
|
#5 |
|
Thanks, that sounds good.
|
|
|
|
0
|
|
|
#6 |
|
Oh I tried it, and it doesn't work. I think I might be confused about which Library folder to put it in as I have one for the user and one for the system. I tried it for the user (the home folder).
|
|
|
|
0
|
|
|
#7 | |
|
Quote:
Name the file local.example.safariopener.plist, not local.example.safariopener. It should open Safari on log in. If you place it in ~/Library/LaunchAgents (in your home folder), it will only work for you. If you place it in /Library/LaunchAgents, it should work on login for each user. Sorry for the error. |
||
|
|
1
|
|
|
#8 |
|
Thanks, it worked perfectly!
|
|
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
All times are GMT -5. The time now is 09:19 AM.







Linear Mode
