On 11/3/05 8:38 pm, "Beth Rosengard" <[EMAIL PROTECTED]> wrote:
> On 3/11/05 2:40 AM, "Barry Wainwright" <[EMAIL PROTECTED]> wrote:
>
>> Or, if you want to _really_ delete them:
>>
>> set theMessages to messages of selectedFolder
>> delete theMessages
>> delete theMessages
>
> Yes, this is what I want to do but I get an error when running this script
> (with the junk mail folder selected): "The variable selectedFolder is not
> defined."
>
> Is this script complete in itself or was it supposed to be inserted
> somewhere? (Sorry, I know nothing about scripting, which I'm sure you knew
> already :-).
>
> Thanks, Barry.
>
> Beth
>
No, that was a script snippet that assumed you had already defined the
variable 'selectedFolder' to be a reference to a particular folder.
If you only want to empty the junk mail folder, then this will do it without
selecting, at any time.
Tell app "Microsoft Entourage"
Set theMessages to messages of folder id 5
Delete themessages
Delete themessages
End tell
That's the full script. Nothing else needed. It will empty the junk mail
folder every time, no matter what is selected or foremost.
This link should load it up for you:
http://tinyurl.com/5fqhs
--
Barry Wainwright
Microsoft MVP (see http://mvp.support.microsoft.com for details)
Seen the All-New Entourage Help Pages? - Check them out:
<http://www.entourage.mvps.org/>
--
To unsubscribe:
<mailto:[EMAIL PROTECTED]>
archives:
<http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/>
old-archive:
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>