On 24 Sep 2014, at 20:01, Alan Schmitt <alan.schm...@polytechnique.org> wrote:
> This was the case here: the string returned by the AppleScript had > quotes (and it still does). > > For instance, with the message you mention, the call to > org-as-get-selected-mail returns this (doing a debug): > > Result: "\"message://2.b2af716655bbac583727@NY-WEB01::split::Private beta > invitation for Emacs Q&A site - Area 51 - Stack Exchange\”” I definitely don’t get quotes in the result of org-as-get-selected-mail. > It works well for grabbing a single message, but it breaks when grabbing > several. Here is one such broken result: > > [[message://9670a832-d0b3-46a8-96bf-05c30d850...@gmail.com][Re: De passage ˆ > San Jose"]] > [["message://4b980c40-db9a-47a7-95a7-17bb8cf81...@gmail.com][Re: De passage ˆ > San Jose]] > > The string returned by the AppleScript was this: > > Result: > "\"message://4b980c40-db9a-47a7-95a7-17bb8cf81...@gmail.com::split::Re: De > passage \210 San > Jose\nmessage://9670a832-d0b3-46a8-96bf-05c30d850...@gmail.com::split::Re: De > passage \210 San Jose\"" > > Does it work on your machine with several messages selected? Yes, it works correctly, as in the following links to this mail thread: [[message://m2h9zwzvuz....@polytechnique.org][Re: {O} PATCH: Fix malformed "message" links produced by org-mac-link.el]] [[message://m28ul9vxnr....@top.irisa.fr][Re: {O} PATCH: Fix malformed "message" links produced by org-mac-link.el]] Not sure how to proceed, then… -Steve