• 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
Variable for multiple recipients in Mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Variable for multiple recipients in Mail


  • Subject: Variable for multiple recipients in Mail
  • From: Dan Doughtie <email@hidden>
  • Date: Sun, 19 Feb 2006 17:25:53 -0500
  • Thread-topic: Variable for multiple recipients in Mail

I have a script that automatically attaches an FTP link to an email and uses
the name of the file to determine who should get the email.

My challenge is I want to have one creation step with the variables changing
depending on the receiving location. I could use variables to set the name
and address but each location gets different number of recipients so that
doesn't work.

I have created a variable that consists of a string that mimics the hard
coded. Here is the hard code.


Tell new message
Set content of it to the_body
Make new to recipient at end with properties {name: "Jane Doe", address:
"email@hidden"}
Make new to recipent at end with properties {name: "John Roe", address:
"email@hidden"}

End tell


 so I did

Set myRecips to "Make new to recipient at end with properties {name: \"Jane
Doe\", address: \"email@hidden\"}
Make new to recipent at end with properties {name: \"John Roe\", address:
\"email@hidden\"}"

Then tried
Tell new message
Set content of it to the_body

myRecips

End tell
-----
The variable matches the command but I guess I need some kind of statement
or  such that says treat this string as a line of code and I can't find a
way to do it

Any suggestions.

 _______________________________________________
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: Variable for multiple recipients in Mail
      • From: Malcolm Fitzgerald <email@hidden>
  • Prev by Date: Re: Xcode debug command
  • Next by Date: Re: Variable for multiple recipients in Mail
  • Previous by thread: Re: Xcode debug command
  • Next by thread: Re: Variable for multiple recipients in Mail
  • Index(es):
    • Date
    • Thread