• 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
Redirect a message in Mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Redirect a message in Mail


  • Subject: Redirect a message in Mail
  • From: Tim Mansour <email@hidden>
  • Date: Thu, 9 Jun 2005 16:59:20 +1000

I'm trying to script Mail to redirect any messages I've select to a given email address. I had this working perfectly in Panther, and somehow during my Tiger upgrade I lost my script and now have to recreate it. I know Mail is quirky to script, but I thought my previous one went something like this ...

set msgs to get selection
repeat with i from 1 to length of msgs
    set newmsg to redirect (item i of msgs)
    tell newmsg
        make new to recipient at end of to recipients with properties {address:"email@hidden"}
        send
    end tell
end repeat

... however I'm getting a "newmsg is not defined" error. Even though the dictionary states the redirect command returns an outgoing message, my testing seems to suggest that redirect doesn't return anything and hence newmsg has no value. 

So how *should* I be doing this?

-- 
Tim Mansour <email@hidden>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Redirect a message in Mail
      • From: Michelle Steiner <email@hidden>
    • Re: Redirect a message in Mail
      • From: pete boardman <email@hidden>
  • Prev by Date: Re: Folder action in download folder...
  • Next by Date: Re: Search & Replace multiple Paragraph returns
  • Previous by thread: [ANN] XNetwork 1.3
  • Next by thread: Re: Redirect a message in Mail
  • Index(es):
    • Date
    • Thread