• 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: myLoop: getting subject of messages in Mail.app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Script for Eudora
  • Next by Date: get alias from ~/path
  • Previous by thread: myLoop: getting subject of messages in Mail.app
  • Next by thread: get alias from ~/path
  • Index(es):
    • Date
    • Thread