10.6: Use a Service to toggle trash can off and on

February 9th, 2010 admin

This hint enables you to turn off (and back on) moving files to Trash when deleting files, thus deleting them immediately when the trash is off. This hint takes advantage of the fact that if the .Trashes folder in a user’s home folder is not accessible, Mac OS X ignores it and displays an immediate file deletion warning like the one seen at right. Create a service in Automator that (via the top two drop-down menus) takes no input and is available in any application. Add a single Run AppleScript


Originally posted on Mac OS X Hints

 
  Related Posts
10.6: Set time of deletion for files placed in the Trash
10.6: Set time of deletion for files placed in the Trash
To make it easier to retrieve accidentally-deleted items from the trash, you can use an Automator workflow and the third-party Automator action Touch Files to create a “date deleted” time stamp on files placed in the trash. Here’s how: Download the Automator action and unzip it. Open Automator and import this action (File  Read More →
10.6: Dial numbers in Google Voice using a Service
10.6: Dial numbers in Google Voice using a Service
I created a Service to send a selected phone number to Google Voice to be dialed. To do this, I actually use two files: The service, which should be installed in your user’s Library/Services folder, and the google-voice-dialer php script , which does most of the heavy lifting; install that wherever. Download the zip file (78KB) , expand it... 
10.6: Create iCal event from dates in Safari
10.6: Create iCal event from dates in Safari
I sometimes want to create an event in iCal from a date that appears on a web page I’m viewing in Safari. Using Automator, I created a Service to do just that. Here’s how: Launch Automator Select Service from the Choose a Template for your Workflow sheet. Set the drop-downs at the top of the Untitled service to ‘Service receives... 
10.6: Jump to path via global Service
10.6: Jump to path via global Service
When I’m working anywhere in 10.6 other than in the Finder, I might suddenly need to go to some path. It kind of bothers me that I have to Command-Tab to the Finder, and then do the Shift-Command-G keystroke. Also, I might want to open some Macintosh-style path (:) instead of POSIX-style (/) path. Now, in 10.6, I can jump to a path using a... 
Empty the trash from any application via AppleScript
Empty the trash from any application via AppleScript
One thing that has always annoyed me in OS X is that the Empty Trash shortcut only works in Finder, so I wrote an AppleScript that lets you empty the trash from any application. First you’ll need to download Spark . Make sure the Spark daemon is running and that ‘Start Spark Daemon at Login’ is checked in the General tab of the... 
10.6: Format text via a Service and emacs
10.6: Format text via a Service and emacs
One very nice emacs feature is its text formatting functions. Combining the Snow Leopard Automator Services with emacs ‘ scripting capabilities, one can easily, from any application, refill a paragraph to lines of 70 characters and indent list items: Open Automator, create a new Service. Set it up so the Service receives selected text from... 
10.6: Open generic files in a preferred app via Services
10.6: Open generic files in a preferred app via Services
Often I need to edit text files that don’t have any associated application. This usually occurs when I’m changing system configuration files. My original process was to Control-click on a file and then select Open with and then Other, and then search through the application folder for my text editor program. From another site, I learned... 
10.6: Secure empty trash via Dock’s trash can icon
10.6: Secure empty trash via Dock’s trash can icon
If you click-and-hold on the Trash icon in the Dock, the contextual menu appears, showing Open and Empty Trash. Press and hold the Command key, though, and Empty Trash turns into Secure Empty Trash.  Read More →
Trash won’t empty? The ultimate guide to deleting stubborn files
Mac OS X occasionally gets hung up on stubborn files and refuses to easily delete them. If you can’t empty your Mac’s Trash, try some of these techniques to get rid of those nasty errors and clear out the junk. As a Mac user, you’ve probably found yourself in a situation where you needed to force empty the Trash. Perhaps a message... 
A small timesaving trick when emptying Mail’s Trash
A small timesaving trick when emptying Mail’s Trash
I have multiple mail accounts and folders set up in Mail, including the Junk folder. I found that after deleting mail from the Junk folder, and from multiple different accounts’ inboxes, that when I went to the Trash and selected all items and pressed the Delete key, only some of the items would be deleted — I would have to “select... 
  Related Tweets from Twitter
tenderlove (Aaron Patterson)  : @phaithful what system? If it's 10.6 you don't need to do anything...
Updated : 2010-03-10T07:36:57Z   |  Reply  |  View Tweet
slava_f (Slava F.)  : looking at the download counter for client system - almost 10^6 docs downloaded since launch. 999606, 999614.....
Updated : 2010-03-09T20:46:06Z   |  Reply  |  View Tweet
CocoaGeek (JeanLouis Villecroze)  : MacOS X 10.6 still has broken adapter's MTU setup (Changes done in "System Preferences" don't work, even if ifconfig reports 9000) ... #sigh..
Updated : 2010-03-09T20:25:09Z   |  Reply  |  View Tweet
Steveos312 (Steven)  : the Mac System 10.6 is worse than System 10.4...unfreckinbelievable crashes, fudget "FileVault", PIT*F*A, and having to reenter keys.....
Updated : 2010-03-09T12:51:22Z   |  Reply  |  View Tweet
softgo (Soft-Go.com)  : SysResources Manager 10.6 download :System utility for watching the curren... http://www.soft-go.com/view/SysResources-Manager_52761.html..
Updated : 2010-03-08T18:10:13Z   |  Reply  |  View Tweet
  Related News from Digg
No comments yet.

Spam Protection by WP-SpamFree

TOP