• 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: Nigel Garvey <email@hidden>
  • Date: Sun, 24 Feb 2013 22:51:43 +0000

Luther Fuller wrote on Sat, 23 Feb 2013 15:36:34 -0600:

>On Feb 23, 2013, at 2:43 PM, Nigel Garvey wrote:
>
>> 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.
>
>I'm not sure this is applicable here, so I will let you decide.
>I have used this …
>
>	tell application "Finder" to open msg using application file id
>"com.apple.mail"
>
>to open a message where the variable msg is an alias to an .emlx file in
>the Finder
>and "com.apple.mail" is the application's 'Bundle identifier'. Would it
>help to use the
>PowerMail Bundle identifier? (Perhaps not. I don't know where/how your
>message is stored.)

Thanks, Luther.

I don't actually need such a facility myself. I'd just taken an interest
in the thread after my previous pot and was commenting on use of 'open
location' with a "message" protocol. Bruce did specifically mention Mail
in his original post, so perhaps I should have kept quiet.

PowerMail stores its messages in a database, not as individual files. It
doesn't have an equivalent to Mail's 'message id' property and its
'headers' can't be compared with a 'whose' filter like Mail's 'all
headers' can. However, the 'headers' of all the messages in a particular
mail folder could be obtained en masse and individually tested for their
Message-ids, which shouldn't be too time-consuming. Alternatively,
PowerMail's 'id' property, an integer like Mail's, identifies a message
wherever in the folder hierarchy it's stored, so a PowerMail user might
record that in FileMaker rather than the Message-id.

NG

 _______________________________________________
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


  • Prev by Date: Re: Simple apple script to open a message in Mail?
  • Next by Date: Re: Mail GUI script error
  • Previous by thread: Re: Simple apple script to open a message in Mail?
  • Next by thread: Applescript URL handler - CLI "open" command not calling "on open location"
  • Index(es):
    • Date
    • Thread