changing content in scripted Mail reply: how?
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