On Nov 18, 2013, at 12:20 AM, Axel Luttgens <email@hidden> wrote:
So, gmail accounts... I've one too here (mainly for "just in case" purposes), but can't reproduce the problem any further with that account.
The problem has nothing to do with Gmail. I've had the problem with real IMAP mail accounts going back to at least Snow Leopard, and have it still on Mavericks.
The problem I've always had is two-fold:
1) Mail's 'reply' AppleScript command does not honor the setting of 'quote selected text'. It always quotes the entire message, or none of it. (Replying via GUI does work.)
2) Each time I send an AppleScript command to modify the reply message, Mail appends another copy of the entire original message (properly quoted).
The workaround I came up with for problem 2 was to copy the reply message's content before touching it in any way, and then pasting that back in at the end, as in:
set replyMessage to reply originalMessage with opening window try set replyContent to get content of replyMessage
-- Make whatever changes you want to sender/recipients/etc. set sender of replyMessage to "Ron Hunsinger < email@hidden>" delete to recipients of replyMessage delete cc recipients of replyMessage -- won't be any, because we didn't reply all make recipient at end of to recipients of replyMessage with properties {address:listRecipient}
set content of replyMessage to replyContent on error msg number n display dialog "Error " & n & ": " & msg delete replyMessage end try
The 'get content of replyMessage' call always returns the empty string, but when I 'set content of replyMessage to replyContent' a new copy of the original quoted text gets appended, and the content is right back where it started. I presume if Apple ever fixes one problem they'll fix the other, and it'll still be a wash.
I tried Christopher Stone's method (temporarily setting 'quote original message' message to false), and that also works to address problem 2. (And now my original solution sometimes sets the text of the reply message to empty, but with the original quoting intact.)
I still don't have a solution for problem 1.
-Ron Hunsinger |