• 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: Simple apple script to open a message in Mail?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple apple script to open a message in Mail?


  • Subject: Re: Simple apple script to open a message in Mail?
  • From: Deivy Petrescu <email@hidden>
  • Date: Mon, 25 Feb 2013 17:12:34 -0500

On Feb 23, 2013, at 15:43 , Nigel Garvey <email@hidden> wrote:

> Deivy Petrescu wrote on Sat, 23 Feb 2013 09:42:23 -0500:
>
>> <script>
>> tell application "Mail" to tell message viewer 1 to set mid to message
> id
>> of its message 1
>> open location "message:<" & mid & ">"
>> </script>
>>
>> This works every time.
>> This means that if your message id is saved together with the message,
>> "open location" would use Mail (I assume the default mail client in
> general)
>
> Hi Deivy.
>
> On my machine, where the default e-mail client is PowerMail, your script
> tries to open the message in Mail. (But 'open location' with a "mailto:";
> protocol starts a message in PowerMail.) So the advice would seem to be
> to use 'open location "message:"' only when you know the message is in
> Mail, and to comment the script accordingly.
>
> NG

Nigel,
Thanks for calling my attention.
Firstly, I expressed myself kinda poorly above.
I meant to say that I expected that "open location: message … " would open the default mail client.
As you pointed out it will notI
It will open mail.
Thank for clearing this up.

One thing, though. If the command above did open the default mail client, one should get the message id using  **that** mail client.
The id used above works only for Mail, in principle.


Deivy Petrescu
email@hidden




 _______________________________________________
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


References: 
 >Re: Simple apple script to open a message in Mail? (From: Nigel Garvey <email@hidden>)

  • Prev by Date: Re: Mail GUI script error
  • Next by Date: Re: Mail GUI script error
  • Previous by thread: Re: Simple apple script to open a message in Mail?
  • Next by thread: Re: Simple apple script to open a message in Mail?
  • Index(es):
    • Date
    • Thread