• 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
changing content in scripted Mail reply: how?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

changing content in scripted Mail reply: how?


  • Subject: changing content in scripted Mail reply: how?
  • From: "Charles Arthur, UKClimbing Editor" <email@hidden>
  • Date: Fri, 25 Jul 2008 01:46:25 +0100

I'm trying to script replies to emails in Mail, and tweak the content
(quite a lot).

It's possible to script the content if you create a new outgoing message:

tell application "Mail"
make new outgoing message with properties{visible:true}
	tell replymail
		make new to recipient with properties {address:therecip}
		set content to thecontent
	end tell
end tell

however, that seems tedious - I'd rather just use "reply". But it seems
that with reply..

set selectedMessages to selection
set replymail to reply item 1 of selectedMessages with opening window
get {content, message signature, subject} of replymail
	tell replymail
		set content to "Hello world"
	end tell

.... doesn't set the content to "Hello world". It just leaves it with the
default signature of whatever you'd reply with for that account.

Is there a way to do this, or should I just give up and use the make new
outgoing...? As much as anything I thought using the "reply" function would
be simpler, since I wouldn't have to wonder whether I'd responded to a
message (if you make a new one, it's not a reply, is it?) and it would have
the right subject and recipient already.

But I'm stuck on this bit.

     best
     Charles
--
http://www.ukclimbing.com : 1,000+ British crags, 350+ British climbing walls
- searchable by distance rock type, etc, with 5-day weather forecasts for
every one - plus maps, articles, news, and the New Routes database. There's
even a cool shop attached...
 _______________________________________________
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

  • Prev by Date: Re: Computer Serial Number
  • Next by Date: Re: InDesign graphic line stroke dash and gap
  • Previous by thread: Re: frontmost in Leopard vs Tiger
  • Next by thread: replacing embedded images in Illustrator
  • Index(es):
    • Date
    • Thread