|
From: | Anthony Lander |
Subject: | Re: [O] small patch to org-mac-link (grab selected messages in Mail.app) |
Date: | Fri, 6 Jun 2014 10:58:11 -0400 |
Hello,
Please find attached a small patch to org-mac-link.el for the functions
creating links to messages in Mail.app.
The problem was that calling the org-mac-message-insert-selected would
always add a spurious first link with empty url and an escaped quote as
text. It would also leave another escaped quote at the end of the text
of the real link.
The patch makes sure that no extra empty line is created during the
AppleScript call, and removes the escaped quotes around the whole value
returned from AppleScript. I have left the code that removes additional
quotes around individual links if they are there, but I don't think it's
needed (I don't see how they could occur there).
Best,
Alan
[Prev in Thread] | Current Thread | [Next in Thread] |