MACSCRPT Archives

July 2009

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Nobumi Iyanaga <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Wed, 29 Jul 2009 23:30:36 +0900
Content-Type:
text/plain
Parts/Attachments:
text/plain (29 lines)
Hello John,

On Jul 29, 2009, at 6:17 PM, John Delacour wrote:

> tell application "Mail"
>   set _selected to first item in (get selection)
>   set _id to id of _selected
>   set _mailbox to mailbox of _selected
>   set _range to the messages in _mailbox whose id is greater than  
> (_id - 1)
>   set _messageids to {}
>   repeat with _i in _range
>     set end of _messageids to message id of _i
>   end repeat
>   _messageids
> end tell

I tried your example. It seems to work...!! This is great.

I will try to write my script using your script.

Thank you very much!

Best regard,

Nobumi Iyanaga
Tokyo,
Japan

ATOM RSS1 RSS2