• 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: Duplicated Message Content
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Duplicated Message Content


  • Subject: Re: Duplicated Message Content
  • From: Ron Hunsinger <email@hidden>
  • Date: Wed, 20 Nov 2013 14:29:25 -0800


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
 _______________________________________________
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

  • Follow-Ups:
    • Re: Duplicated Message Content
      • From: Axel Luttgens <email@hidden>
References: 
 >Duplicated Message Content (From: John <email@hidden>)
 >Re: Duplicated Message Content (From: Axel Luttgens <email@hidden>)
 >Re: Duplicated Message Content (From: John <email@hidden>)
 >Re: Duplicated Message Content (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: Windowviews is not allowed assistive access
  • Next by Date: Re: Contacts ยป Select 'All Contacts'
  • Previous by thread: Re: Duplicated Message Content
  • Next by thread: Re: Duplicated Message Content
  • Index(es):
    • Date
    • Thread