Friday, April 22, 2011

Clear Downloads Folder using AppleScript

With time the Downloads folder gets filled with a variety of items. In order to clear it using the dock, items have to be dragged to the Trash individually [crarko adds: or you can navigate to the folder in Finder, do a 'Select All' and trash them]. Here is a tiny AppleScript that presents an alternative.

Run AppleScript Editor and copy and paste the following code. You'll have to change the path to match your username using AppleScript Editor. Next, save it as an application named 'Clear Downloads' into your Downloads folder. Feel free to add a custom icon if you wish. To test, just click your downloads stack on the dock and select 'Clear Downloads.'

Here's the script:
 try   tell application "Finder"   move (files of alias "Macintosh HD:Users:YOURUSERNAMEGOESHERE:Downloads" whos ...


Add to digg Add to Reddit Add to Slashdot Email this Article Add to StumbleUpon

Source: http://feeds.macosxhints.com/click.phdo?i=4f27ed2fba24fed99d455d98ae396503

free i touch apps apple blog apple hot news apple itablet news imac store news from apple mac computer news applecare

No comments:

Post a Comment