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


Click here to return to the 'Or use Folder Actions' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Or use Folder Actions
Authored by: sinjin on Jun 22, '04 01:12:04PM
WARNING! Shameless plug alert!

You can keep your desktop sparkling clean without altering anything in the system using OS X's built in "Folder Actions." Check out this hint of mine for details. And yes, that is a joke in the second paragraph ;-). The short version of the hint is to attach this folder action script to the Desktop folder:


on adding folder items to this_folder after receiving added_items
  repeat with each_item in added_items
    tell application "Finder"
      move each_item to "Path:to:new:folder:" replacing no
    end tell
  end repeat
end adding folder items to
Replace "Path:to:new:folder:" with the actual path name you will be using. After that everything that you send to the Desktop or drop on it gets redirected to the folder you specified in the path.

[ Reply to This | # ]
Or use Folder Actions
Authored by: wgscott on Jun 22, '04 01:48:35PM

That's one of the best hints I have seen posted here (somehow I missed it the first time around). Ironic there are so many boneheads that can't comprehend self-depricating humor.

Buy this guy a drink!



[ Reply to This | # ]
Or use Folder Actions
Authored by: mrchaotica on Jun 25, '04 09:44:16PM

Hey, thanks! I'd been approximating this behavior with a cron job:

$ crontab -l
0 1 * * * mv ~/Desktop/* ~/tmp/TO\ BE\ FILED/

(note: the command activates only once per day, at 1AM)

But this is much better, since it uses system events rather than polling.



[ Reply to This | # ]