Re: scripting secure empty trash (was: no subject)
Re: scripting secure empty trash (was: no subject)
- Subject: Re: scripting secure empty trash (was: no subject)
- From: David Marshall <email@hidden>
- Date: Sun, 16 Jul 2006 11:49:12 -0400
On Sat, 15 Jul 2006, kai wrote:
(was: no subject)
Only two things I miss from my Outlook Express days (now using Mail):
the Next and Previous buttons in individual message windows, and the
warning issued when clicking "Send" on messages with empty subject
fields! 8-0
If the keystroke
follows straight on from the menu click, the target button may not be
quite ready to register it (causing the warning dialog to stay put).
My script, originally written in OS X 10.3.8 on an iMac G3/400,
included a 2-second delay (which probably meant that 1 second didn't
seem to be enough; my fine-tuning efforts didn't include intra-
integer interpolations); when I dusted it off in response to this
thread, the delay wasn't needed in OS X 10.4.7 on a mini G4/1.25.
tell application "System Events"
set w to value of property list file ((path to preferences as
Unicode text) & ¬
"com.apple.finder.plist")'s property list item "WarnOnEmptyTrash"
tell application process "Finder"
click menu item 7 of menu "Finder" of menu bar item "Finder" of
menu bar 1
if w then
Thanks for the (elegant, as usual) solution to the Finder warning
issue. Wonder if any linguists have ever done analyses of AS's
unusual macroization of parts of speech? The possessive noun
((path to preferences as Unicode text) & "com.apple.finder.plist")'s
is a beauty; I appreciate my (original script supplemented with your
property list item value test)'s improved functionality. ;-)
- - - - -
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