Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Auto Empty Trash.

Auto Empty Trash.
Thread Tools
brokenbells
Junior Member
Join Date: Jun 2006
Status: Offline
Reply With Quote
Feb 15, 2007, 03:53 PM
 
Is it possible to empty the Trash automatically....that is .... say all items older than one month gets automatically deleted from the Trash Can ?
Vikram
-------
Dont worry that today is the last day of the world, its already tomorrow in Australia....
     
El Gato
Dedicated MacNNer
Join Date: Apr 2005
Status: Offline
Reply With Quote
Feb 15, 2007, 04:32 PM
 
You could probably cook something up in automator.
     
Gossamer
Professional Poster
Join Date: Jun 2006
Location: "Working"
Status: Offline
Reply With Quote
Feb 15, 2007, 05:55 PM
 
Your best bet is probably to keep a to-delete folder on your desktop or in your dock that you empty out every so often. The trash can isn't really supposed to be a storage bin.
     
brokenbells  (op)
Junior Member
Join Date: Jun 2006
Status: Offline
Reply With Quote
Feb 16, 2007, 07:07 AM
 
Yup, the trash bin is definately not a storage bin.......but there are times when you regret the files that you delete a day or two later.

But over a period of time it gets very inconvenient to delete a selection of files from the trash bin due to the number of files you accumilate in the trash bin.

I was wondering if there was a script or a program that deletes a particular set of files after a period of time from the trash since i definately know that Mac OSX is a very versatile OS and it is definately possible.
Vikram
-------
Dont worry that today is the last day of the world, its already tomorrow in Australia....
     
brokenbells  (op)
Junior Member
Join Date: Jun 2006
Status: Offline
Reply With Quote
Feb 16, 2007, 09:52 AM
 
UPDATE : ......and automator has nothing for Trash....
Vikram
-------
Dont worry that today is the last day of the world, its already tomorrow in Australia....
     
philm
Mac Elite
Join Date: May 2001
Location: Manchester, UK
Status: Offline
Reply With Quote
Feb 16, 2007, 10:00 AM
 
I asked the same question in December 2005. There were a few ideas put forward.
     
Savage
Fresh-Faced Recruit
Join Date: Mar 2007
Status: Offline
Reply With Quote
Mar 8, 2007, 02:14 AM
 
Found this little doozy on another forum so thought I'd share the love

tell application "Finder"
empty the trash
beep
end tell

That is the applescript code to run it you can just load up automator then add an action to your workflow called 'Run Applescript' then past that code into the editor window. Should work fine but I've only just started using automator and apple script yesterday so could be wrong
     
brokenjago
Mac Elite
Join Date: Sep 2005
Location: Los Angeles, California
Status: Offline
Reply With Quote
Mar 8, 2007, 03:53 AM
 
There's a program called Compost that runs about $8 that's a very comprehensive tool for managing your trash.

I tried it out, found it wasn't for me, but you should check it out.
Linkinus is king.
     
Savage
Fresh-Faced Recruit
Join Date: Mar 2007
Status: Offline
Reply With Quote
Mar 8, 2007, 06:58 AM
 
Originally Posted by Savage View Post
Should work fine but I've only just started using automator and apple script yesterday so could be wrong
Can now confirm that this works.

I am running a worklow and it was always running out of hard drive space because I was moving to the trash and not emptying. Added this action into the worklow and voila!
     
Scott-G
Junior Member
Join Date: Apr 2005
Status: Offline
Reply With Quote
Mar 8, 2007, 01:08 PM
 
     
turntabletux
Junior Member
Join Date: Apr 2007
Location: NY
Status: Offline
Reply With Quote
Jun 4, 2007, 01:50 AM
 
Originally Posted by Savage View Post
Can now confirm that this works.

I am running a worklow and it was always running out of hard drive space because I was moving to the trash and not emptying. Added this action into the worklow and voila!
I have also successfully ran this script. I like it, now is there anyway to automatically run my workflow at a certain time of day?

MacBook Core 2 Duo 2GHZ 1GB of RAM
     
   
Thread Tools
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 11:02 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,