Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!


Click here to return to the 'How do you use this?' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
How do you use this?
Authored by: MacTipper on Wed, Apr 23 2008 at 2:10PM PDT
Can somebody please elaborate on how one would apply this to LaunchD?

Thanks in Advance,
MacTipper

---
MacTipper
Check out my mac tip blog

[ Reply to This | # ]
How do you use this?
Authored by: regulus on Wed, Apr 23 2008 at 3:14PM PDT
Notice how you set a name in the part "com.domain.whatever". So what you do is save that text file with the name and a ".plist" extension i.e. com.domain.whatever.plist. Then you take that file and put it in your ~/Library/LaunchAgents folder. The next time you logout or reboot your computer launchd will see the file and it will be working.

[ Reply to This | # ]
How do you use this?
Authored by: mjb on Wed, Apr 23 2008 at 5:46PM PDT
I imagine you could force the load immediately without a reboot/relogin with launchctl? Perhaps:

$ launchctl load ~/Library/LaunchAgents/com.domain.whatever.plist
(Not a launchd/launchctl guru here, please correct as needed)

[ Reply to This | # ]
How do you use this?
Authored by: mmnw on Thu, Apr 24 2008 at 2:36AM PDT
This is perfectly correct. I'd like to add, if you would like to remove the job, you use
launchctl unload ~/Library/LaunchAgents/com.domain.whatever.plist
If you would like to remove the job permanently you should also delete/move the file from that folder (or set the disabled key in the plist file to true, see the man launchd.plist for details). You should also unload and then load again if you modify the .plist file.

[ Reply to This | # ]
How do you use this?
Authored by: Peter_T on Thu, Apr 24 2008 at 12:51AM PDT
The best launchd description / tutorial I've found is at afp548 [link:]http://www.afp548.com/article.php?story=2008030421090192

[ Reply to This | # ]
How do you use this?
Authored by: MacTipper on Thu, Apr 24 2008 at 8:38AM PDT
Thanks for the help everybody!

MacTipper

[ Reply to This | # ]