• 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: passing a list to FMPro from Mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: passing a list to FMPro from Mail


  • Subject: Re: passing a list to FMPro from Mail
  • From: Christopher Stone <email@hidden>
  • Date: Wed, 08 Apr 2015 12:34:48 -0500

On Apr 04, 2015, at 20:13, John Mitchell <email@hidden> wrote:
I have an applescript which captures a list of email recipients, and then saves it to a global variable in FMPro, all defined as an Apl script in a FMPro script.
______________________________________________________________________

Hey John,

I don't have FMP to test with, so I have no idea where that failure is occurring, but...

tell application "Mail"
set theMessages to selection
set theEmail to last item of theMessages
tell theEmail
set personList to (name of recipients of theEmail)
set personList to personList & (name of to recipients of theEmail)
set personList to personList & (name of cc recipients of theEmail)
end tell
end tell

You're already telling theEmail, so the underlined portions are unnecessary.

Also - recipients includes to recipients, cc recipients, and bcc recipients - so you have quite a bit of redundancy here.

--
Best Regards,
Chris

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: passing a list to FMPro from Mail
      • From: Yvan KOENIG <email@hidden>
References: 
 >Re: passing a list to FMPro from Mail (From: John Mitchell <email@hidden>)

  • Prev by Date: Re: scripting Xcode to import images
  • Next by Date: Re: passing a list to FMPro from Mail
  • Previous by thread: Re: passing a list to FMPro from Mail
  • Next by thread: Re: passing a list to FMPro from Mail
  • Index(es):
    • Date
    • Thread