Solution: delete message(s) without prior moving to deleted items

J

Jens Lorenz

Hi!

Just to share this solution.
I was asked to make it possible to delete one or more messages in Entourage
without moving them to the deleted items folder.
We use Entourage with Exchange.

I found a script on http://www.avernus.com/~phil/OEStuff.html which does
just that, but it won't work with Entourage being an Exchange client (you
get an error message that the message is online and the action isn't
supported yet).

So I wrote this script and it works (also for open or multiple messages):


tell application "Microsoft Entourage"

set selectedMessages to current messages

if selectedMessages is {} then
display dialog "No message selected for deletion." with icon 1
return
end if

repeat with theMessage in selectedMessages
delete theMessage
delete theMessage
end repeat
end tell


It first deletes the message(s) - into the deleted items folder - and then
deletes it again - from the deleted items folder.

Just save that into a file called e.g "Delete Message\cD" into the
Documents:Microsoft user Data: Entourage Script Menu Items folder and you'll
have the script available inside Entourage via the script menu and ctrl-D
shortcut -> the \cD creates the shortcut.

Regards,
Jens
 

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