• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: scripting secure empty trash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >scripting secure empty trash (From: Andrew Brosnan <email@hidden>)

  • Prev by Date: scripting secure empty trash
  • Next by Date: Extracting username and password from login
  • Previous by thread: scripting secure empty trash
  • Next by thread: Re: scripting secure empty trash
  • Index(es):
    • Date
    • Thread