Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Short Lingon tutorial' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Short Lingon tutorial
Authored by: lincd0 on Jul 03, '07 01:48:59PM

Launch Lingon. Click on the Assistant icon in the toolbar. The radio button labeled Run a job at startup should be selected in Step 1; if not, select it. Click Next. In Step 2, you can enter anything you want (no spaces) for the label. The checkbox labeled Launch only when I log in should be selected; if not, select it. Click Next. In Step 3, enter /bin/rm -rf ~/somefolder/*, where somefolder is the relative path to the folder whose contents you want to delete at login. The '~' represents your home directory. For example, if you are user 'foo' and the target directory is '/Users/foo/Documents/bar', you would put /bin/rm -rf ~/Documents/bar/*. Click Create.

You will see your new launchd item in the My Agents table, with a green icon in the first column indicating that it's active. To edit it, double click the entry. To delete, select it, click the Unload icon in the toolbar, then hit the Delete key.

WARNING: This procedure will destroy data. If you get it wrong, it may destroy data other than what was intended. Do not follow these instructions unless you fully understand what's going on and have satisfied yourself that they're correct. If you have no experience with the shell or launchd, try this in a test account first.

[ Reply to This | # ]

Short Lingon tutorial
Authored by: davidas on Jul 04, '07 03:39:55AM

Thanks, lincd0. Much appreciated. Now I've got a way to vector what I don't know with what I do. I'm not going to try anything till I've worked this out. The hack isn't an essential priority, so I can take my time with it and try to get it right the first time, as you warn.

Best regards,























































































---
David Smith



[ Reply to This | # ]