• 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: AppleScript Runner Problems?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript Runner Problems?


  • Subject: Re: AppleScript Runner Problems?
  • From: Luther Fuller <email@hidden>
  • Date: Mon, 02 May 2011 16:42:55 -0500

On May 2, 2011, at 11:39 AM, S. J. Cunningham wrote:

I have written a fairly trivial script to compose a new, pre-addressed Mail message and then open it for editing (see attached).

This may help ... or not ...

if my emailAddress(theItem) then
tell application "Mail"
activate
set newMsg to make new outgoing message with properties {visible:true}
tell newMsg to make new to recipient with properties {address:theItem}
end tell
return -- exit repeat
end if

This creates an open message addressed to theItem ready for manual entry of content and subject.
The emailAddress handler simply checks that theItem is actually a valid email address.

 _______________________________________________
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

References: 
 >AppleScript Runner Problems? (From: "S. J. Cunningham" <email@hidden>)

  • Prev by Date: Re: AppleScript Runner Problems?
  • Next by Date: Re: AppleScript-Users Digest, Vol 8, Issue 186
  • Previous by thread: Re: AppleScript Runner Problems?
  • Next by thread: Re: AppleScript-Users Digest, Vol 8, Issue 187
  • Index(es):
    • Date
    • Thread