Re: perhaps I'll ask again on the Mail scripting thing
Re: perhaps I'll ask again on the Mail scripting thing
- Subject: Re: perhaps I'll ask again on the Mail scripting thing
- From: "Charles Arthur, UKClimbing Editor" <email@hidden>
- Date: Mon, 28 Jul 2008 09:50:25 +0100
At Sun, 27 Jul 2008 15:43:22 -0700 Michelle Steiner
<email@hidden> wrote:
(you see, I just *knew* if I could ask in the right way, Michelle would
come to the aid of the party)
>BTW, "Set content to" does replace the entire content with a new (not
>reply) message.
Actually, no, it doesn't for me. (10.5.4, Mail 3.4).
To see this *not* happening it's important to watch the process run. (A bit
like making sausages...) For this we use "with opening window" in creating
the reply.
(choose a message in your inbox).
<script>
tell application "Mail"
set selectedMessages to selection
set replymail to reply item 1 of selectedMessages with opening window --
makes the window visible so you can see
--this brings up the window, and you can see the reply, with the quoted text.
--OK, now try to change the content:
set thecontent to "hello world "
set content of replymail to thecontent
end tell
</script>
for me, doesn't change the content of the outgoing message.
In addition, if you ask it what the content of the outgoing message is
before you try to change it, it just gives you a blank, and the signature -
ignoring all the quoted stuff below it.
>Also, the reply message quotes the entire original message, even if
>text of that message had been selected; should it do that, or should
>it quote only the selection, as when you manually reply?
The ideal would be the latter. But of course we're imagining a world where
seven years after its first release an email program would know what
portions of text were selected. Come on, be reasonable.
Now, you may be saying "why the hell does it matter? Just create a new
message to the sender already!" But I want to be sure that these emails
have been processed, and *replied to*. I could tweak the "replied" status
of the incoming messages, but if there's a "reply item" function in the
Applescript dictionary, why not use that?
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