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

Click here to return to the 'TrashTimer for the rescue…' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
TrashTimer for the rescue…
Authored by: themacnut on Sep 14, '06 12:28:56PM

Oh sorry, here it is:

tell application "Finder"
empty trash
end tell

Sometimes Applescripts really are that simple. Sometimes. Anyway, that should be enough to empty the trash, especially if you put it in your "Scripts" menu. You can also schedule it to empty the trash on a regularly scheduled interval, either with cron or launchd.

The MacNut
Owner, ClarisWorks/AppleWorks Email List
The Vanguard, my webcomic:

[ Reply to This | # ]