Re: myLoop: getting subject of messages in Mail.app
Re: myLoop: getting subject of messages in Mail.app
- Subject: Re: myLoop: getting subject of messages in Mail.app
- From: Phebe Anggreani <email@hidden>
- Date: Fri, 28 Feb 2003 21:54:33 -0600
On Friday, February 28, 2003, at 07:54 pm, John Delacour wrote:
set my text item delimiters to "Re: "
tell application "Mail"
set vSubject to subject of item 1 of (get selection)
set vSubject to the last text item of vSubject
set my text item delimiters to {""}
set vList to {}
all messages in the front message viewer
repeat with vMessage in result
set vMessage to item 1 of vMessage -- !!
if vSubject is in vMessage's subject then
set end of vList to vMessage
end if
end repeat
set properties of front message viewer to {focused messages:vList}
end tell
return vList
Thanks for the reply. I actually solved it by defining the all messages
before looping:
set allMsg to all messages of front message viewer
set selectedMsg to {}
repeat with thisMsg in allMsg
This somehow works.
Phebe
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.