On 23/10/00 4:50 pm, Joe Gillespie <[EMAIL PROTECTED]> wrote:
> The purpose of the AppleScript is to run through all the incoming messages,
> I get over 100 each day from several busy lists, filing the ones I've
> flagged under 'Read Mail', sending the rest to 'Deleted Items' except for
> ones categorised as 'Junk Mail' which are nuked immediately.
I'm not sure you need a script for this, since Rules have a specific
criterion for junk mail ("Is junk mail"). You can just set the action of the
rule to do whatever you want, or add your AppleScript as an action in the
Junk Mail Filter. You don't need to detect junk mail; you can just
concentrate on doing whatever you want to do with it.
> I haven't been able to figure out how to identify categories with
> AppleScript. 'Category' is a property of 'message' but any attempt to
> address this property fails - probably because I've got the syntax wrong.
tell application "Microsoft Entourage"
set theCategory to category of message 1 of folder "InBox"
if (count of items of theCategory) is greater than 0 then
set theFirstCategoryName to name of item 1 of theCategory
display dialog theFirstCategoryName buttons "OK" default button 1
end if
end tell
-M
--
Matt Ridley
<http://www.mattridley.com/>
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
To search the archives:
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>