Jump to content
Subject22

Empty Downloads folder workflow

Recommended Posts

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

Share this post


Link to post

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.

Share this post


Link to post

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

Share this post


Link to post

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

Share this post


Link to post

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! 

Share this post


Link to post

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 :-)

Share this post


Link to post

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

Share this post


Link to post

 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

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...