• 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
(no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(no subject)


  • Subject: (no subject)
  • From: David Marshall <email@hidden>
  • Date: Sat, 15 Jul 2006 07:59:13 -0400

On Thu, 13 Jul 2006, kai wrote:

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

Just a note: if the user has "Show warning before emptying the Trash" checked in Finder's "Advanced" prefs, they'll need to add a "keystroke return" to the script.


- - - - -

tell application "Finder" to activate
tell application "System Events"
	tell process "Finder"
		click menu item 7 of menu "Finder" of ¬
			menu bar item "Finder" of menu bar 1
		keystroke return
	end tell
end tell

- - - - -

Dave _______________________________________________
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


  • Prev by Date: Re: Dynamic objects/containers in AppleScript Studio
  • Next by Date: Re: AS & Filemaker Pro
  • Previous by thread: Re: open afp location
  • Next by thread: Adding a property value to a plist file
  • Index(es):
    • Date
    • Thread