Keyboard Shortcut for Direct Delete?

T

Tom Kirshbaum

Does anyone happen to know if there¹s a keyboard shortcut or a script that
will delete messages from my Spam folder directly without going through
Deleted Messages? That¹s a lot of extra key presses every day, given the
amount of spam coming in.

Tom
 
B

Barry N. Wainwright

Does anyone happen to know if there¹s a keyboard shortcut or a script that
will delete messages from my Spam folder directly without going through
Deleted Messages? That¹s a lot of extra key presses every day, given the
amount of spam coming in.

Tom

Look for the script 'nuke messages'.

Alternatively, the script is so simple here is one in all it's glory...

tell application "Microsoft Entourage"
set theMessages to current messages
if theMessages ‚ {} then
display dialog "Do you want to permanently delete the selected
messages?" buttons {"Yes", "No"} default button 2 with icon caution
if button returned of the result is "Yes" then
delete theMessages
delete theMessages
end if
end if
end tell

--
Barry Wainwright
Microsoft MVP (see http://mvp.support.microsoft.com for details)
Seen the Entourage FAQ pages? - Check them out:
<http://www.entourage.mvps.org/toc.html>

Please post responses to this newsgroup. If I ask you to contact me
off-list, remove '.INVALID' from email address before replying.
 
T

Tom Kirshbaum

Barry,

Thanks for the script, but I ran into a problem with it. When I run it, I
get this message: ³Microsoft entourage got an error: {incoming message id
9973} doesn¹t understand the delete message²

Is there a fix?

Thanks.

Tom
 
P

Paul Berkowitz

You can adapt it slightly:

tell application "Microsoft Entourage"
set theMessages to current messages
repeat with i from (count theMessages) to 1 by -1
set theMessage to item i of theMessages
delete theMessage
delete theMessage
end repeat
end tell


It's slower, but will work for you. I'm presuming that you're trying to save
an extra click, so I've omitted the "safety net" dialog and if/then block
provided by Barry . Just put them back in to be safer:

tell application "Microsoft Entourage"
set theMessages to current messages
if theMessages ‚ {} then
display dialog "Do you want to permanently delete the selected
messages?" buttons {"Yes", "No"} default button 2 with icon caution
if button returned of the result is "Yes" then
repeat with i from (count theMessages) to 1 by -1
set theMessage to item i of theMessages
delete theMessage
delete theMessage
end repeat
end if
end if
end tell

--
Paul Berkowitz
MVP Entourage
Entourage FAQ Page: http://www.entourage.mvps.org/toc.html

Please "Reply To Newsgroup" to reply to this message. Emails will be
ignored.

PLEASE always state which version of Entourage you are using - 2001 or X.
It's often impossible to answer your questions otherwise.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top