• 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: Copy email address from clipboard to outgoing Mail message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Copy email address from clipboard to outgoing Mail message


  • Subject: Re: Copy email address from clipboard to outgoing Mail message
  • From: Deivy Petrescu via AppleScript-Users <email@hidden>
  • Date: Wed, 13 May 2020 20:05:00 -0400


> On May 13, 2020, at 19:28 , Mike Matthews via AppleScript-Users
> <email@hidden> wrote:
>
> All:
>
> Easy one, I hope. I've searched high and low for a solution (that I'm pretty
> sure is obvious, but is beyond me).
>
> I want to copy an email address from the clipboard to the To: field in an
> outgoing mail message in macOS Mail.
>
> So far I have:
>
>       tell application "System Events"
>               set customer to (the clipboard as text)
>       end tell
>       return input
>
>       tell application "Mail"
>               set newMessage to make new outgoing message with properties
> {subject:"Blah, blah, blah", to recipient:customer, content:"La-de-dah"}
>       end tell
>
> I'm sure it's something easy I'm missing.
>

tell application "Mail"
                set newMessage to make new outgoing message with properties
{subject:"Blah, blah, blah",  content:"La-de-dah”}
                tell newMessage to make new to recipient with properties
{address:the clipboard}
end tell




> Thanks in advance,
> mm
> _______________________________________________
> 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

Deivy Petrescu
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:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Copy email address from clipboard to outgoing Mail message
      • From: Shane Stanley via AppleScript-Users <email@hidden>
References: 
 >Copy email address from clipboard to outgoing Mail message (From: Mike Matthews via AppleScript-Users <email@hidden>)

  • Prev by Date: Re: open for access command, more re my original query
  • Next by Date: Re: Copy email address from clipboard to outgoing Mail message
  • Previous by thread: Copy email address from clipboard to outgoing Mail message
  • Next by thread: Re: Copy email address from clipboard to outgoing Mail message
  • Index(es):
    • Date
    • Thread