• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: selecting a message in Mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: selecting a message in Mail


  • Subject: Re: selecting a message in Mail
  • From: Thomas Maffucci <email@hidden>
  • Date: Mon, 21 Sep 2009 01:35:02 -0400
  • Thread-topic: selecting a message in Mail

Jim Brandt wrote on Sat, 19 Sep 2009 16:56:15
>>Thanks to both you and Alex with the hints on the message viewer,
>>I managed to get this to work last night:

>>tell application "Mail"
>>    tell front message viewer
>>        set in_box to messages in inbox
>>        set mcount to count of in_box
>>        repeat with m from 1 to mcount
>>            set ThisMess to item m of in_box
>>            set read_status to read status of ThisMess
>>            set subj to subject of ThisMess
>>            set this_id to id of ThisMess
>>            if not read_status then
>>                if subj begins with "Applescript-" or subj begins with ¬
>>                    "MACSCRPT " or subj begins with "TidBits" then
>>                    (messages in inbox whose id is this_id)
>>                    set selected messages to result

>>                    my Save_and_Move()

>>                end if
>>            end if
>>        end repeat
>>    end tell -- message viewer 1
>>end tell -- Mail

>>The Save_and Move handler saves the message and moves it to
>>another mailbox and marks it as read.

>>Thanks to both of you for pointing me in the right direction.

>>Jim

I am somewhat new to Entourage 2008 for Mac.
How would I accomplish the same as above with an Entourage Script
All the examples that I have been able to find always start with
Already manually selected messages.

Thanks
Tom Maffucci


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: do shell script "command not found"
  • Next by Date: Re: do shell script "command not found"
  • Previous by thread: Re: selecting a message in Mail
  • Next by thread: Double-quotes and Bar-quotes
  • Index(es):
    • Date
    • Thread