Re: scripting secure empty trash
Re: scripting secure empty trash
- Subject: Re: scripting secure empty trash
- From: kai <email@hidden>
- Date: Thu, 13 Jul 2006 19:19:43 +0100
On 13 Jul 2006, at 19:02, Andrew Brosnan wrote:
I'd like to use 'secure empty trash' in an Applescript. I can't find
reference to how to do this, and my attempts have so far failed.
Anyone
know how to do this?
Doesn't seem possible directly via Finder scripting, Andrew. However,
with GUI Scripting enabled, you might try:
----------------
tell application "System Events" to tell application process "Finder"
set frontmost to true
click menu item "Secure Empty Trash" of menu "Finder" of menu bar
item "Finder" of menu bar 1
end tell
----------------
---
kai
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden