OK, this is somewhat advanced, I'm warning you up front. I don't advise
anyone attempting this unless you really know exactly what you're doing and
feel comfortable with moving around in Voiceover, as the process is somewhat
involved. Beware as well, I honestly don't know why anyone ever would wanna
do this, but, it's a tip, none the less, and I did test it, and it does
indeed work.
This tip enables you to turn off (and back on) moving files to Trash when
deleting files, thus deleting them immediately when the trash is off instead
of moving them first to the trash.
This tip 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.
So, here we go.
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
action that has following contents:
on run {input, parameters}
do shell script "chown root ~/.Trash" with administrator privileges
do shell script "killall Finder"
return input
end run
Save the service as Bypass Trash. Create another service with the same
properties and one AppleScript action, with the following contents:
on run {input, parameters}
do shell script "sudo chown myusername ~/.Trash" with administrator
privileges
return input
end run
Replace myusername with your short user name as defined in the Accounts
System Preferences panel. Save this one as Enable Trash.
By running the Service in any application (Finder included), you can turn
off (and back on) the Trash seamlessly. Do note that when turning off the
Trash, Finder must restart so as to take notice of the folder ownership
change.
Chris.
<--- Mac Access At Mac Access Dot Net --->
To reply to this post, please address your message to [email protected]
You can find an archive of all messages posted to the Mac-Access forum at
either the list's own dedicated web archive:
<http://mail.tft-bbs.co.uk/pipermail/mac-access/index.html>
or at the public Mail Archive:
<http://www.mail-archive.com/[email protected]/>.
Subscribe to the list's RSS feed from:
<http://www.mail-archive.com/[email protected]/maillist.xml>
The Mac-Access mailing list is guaranteed malware, spyware, Trojan, virus and
worm-free!
Please remember to update your membership options periodically by visiting the
list website at:
<http://mail.tft-bbs.co.uk/mailman/listinfo/mac-access/options/>