Jump to content

Empty Downloads folder workflow


Recommended Posts

Posted (edited)

I like to keep my computer tidy and that means that I often shift the contents of ~/Downloads to the Trash. Doing things manually is so last year, so I made a simple workflow to automate the process.

 

Trash%20Downloads%20-%20Screenshot.png

 

Download: Trash Downloads

Keyword: trash downloads

Edited by Subject22
Posted

I like to keep my computer tidy and that means that I often shift the contents of ~/Downloads to the Trash. Doing things manually is so last year, so I made a simple workflow to automate the process.

 

ZBsr+.png

 

Download: Clear Downloads

Keyword: clear

 

Good workflow, would love to see a clear desktop workflow that isn't deskdrawer, i dislike it it's too messy and i don't like that it clearly shows in finder where it's located.

Posted (edited)

That's not hard at all :-) Below is a version which contains a duplicate path which clears the Desktop. I considered making it possible to specify any folder, but I was concerned about the potential for disaster if someone spelled a folder's name incorrectly. This version keeps it simple. desktop clears ~/Desktop, downloads clears ~/Downloads.

 

Download: Clear Downloads & Desktop

Keywords: desktopdownloads

 

I am now out of posts for the next 18 hours or so, so I'll get back to you with any replies tomorrow :-)

Edited by Subject22
Posted (edited)

No problem :-) You know about Alfred's built in feature for emptying the trash don't you? The keyword emptytrash will do that for you :-) But if you want this workflow to automatically empty the trash after clearing your downloads folder, find it in Alfred, double click the Run Script action and paste the following code on a new line under the existing code: osascript -e 'tell app "Finder" to empty'

Edited by Subject22
Posted

No problem :-) You know about Alfred's built in feature for emptying the trash don't you? The keyword emptytrash will do that for you :-) But if you want this workflow to automatically empty the trash after clearing your downloads folder, find it in Alfred, double click the Run Script action and paste the following code on a new line under the existing code: osascript -e 'tell app "Finder" to empty'

 

I added this to your desktop and download workflow, (also added force empty) and now it empties it too! 

Posted

I left automatic trash emptying out of the standard version to avoid accidental deletion, but if you guys understand the risk and are happier this way that's fine by me :-)

  • 4 months later...
Posted

I added this to your desktop and download workflow, (also added force empty) and now it empties it too! 

 

 Racer, would you kindly provide your updated workflow with the deleting mechanism? Thank you very much

  • 2 months later...
Posted (edited)

 Racer, would you kindly provide your updated workflow with the deleting mechanism? Thank you very much

 

 

Sure! Sorry for late reply. Here it is

Edited by Racer

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...