From: Chris Gehlker Date: 2002-01-02T01:42:19+09:00 Subject: [ruby-talk:29965] Re: Threading this mailing list in Entourage On 1/1/02 5:49 AM, "Chris Gehlker" wrote: > Well, it's not quite done in Ruby yet, but below is some code that will let > this list thread in Entourage: > > set AppleScript's text item delimiters to "]" > tell application "Microsoft Entourage" > set rubyMessages to messages in storage of mailing list � > "Ruby" whose subject starts with "[" > repeat with currentMessage in rubyMessages > set theSubject to subject of currentMessage > set newSubject to text item 2 of theSubject > set the subject of currentMessage to newSubject > end repeat > end tell Oops! this works better if the first line is: set AppleScript's text item delimiters to "] " -- There is, nevertheless, a certain respect and a general duty of humanity that ties us, not only to beasts that have life and sense, but even to trees and plants. -Michel de Montaigne, essayist (1533-1592)