• 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: open location "message://<xyz>" now fails
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: open location "message://<xyz>" now fails


  • Subject: Re: open location "message://<xyz>" now fails
  • From: Simon Forster <email@hidden>
  • Date: Tue, 11 Nov 2008 17:40:00 +0000


On 11 Nov 2008, at 17:15, Philip Aker wrote:

On 2008-11-11, at 08:25:22, Simon Forster wrote:

Having built a(n AppleScript) system based on the premise that open location "message://<xyz>" opens the appropriate email in Mail, suddenly Mail's started to return the less than helpful error: "No associated application could be found.". Can anyone suggest a way of getting this functionality back please?

FWIW, info on the "message://<xyz>" format can be found here <http://daringfireball.net/2007/12/message_urls_leopard_mail >.

It might mean that some third party app has registered the scheme.

One way that URL schemes are registered is in each application's Info.plist. I'm not sure if there is an API (like in WebKit or some other framework) which can register URLs dynamically.
Maybe if you 'touch' /Applications/Mail.app from Terminal it will update the database. Another call to check into would be:


/System/Library/Frameworks/CoreServices.framework/Versions/A/ Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -h

ยง

BTW, I just dragged (drug) a message from Mail.app into a TextEdit document and saved it as HTML. The salient line is:

<p class="p1"><a href="message: ">open location "message://&lt;xyz&gt;" now fails</a></p>

There's some weird stuff going on here. After a load of Googling I found:


<http://discussions.apple.com/thread.jspa?threadID=1610544&tstart=0>

So having tried other stuff, what the hell. Opened Safari and set it to be my default browser. Quit Safari. Quit Mail. Opened Mail. Got your message. Clicked on link in your message. Worked. "open location" works in script editor now too.

Hold on. Will save this as draft.

Quit Mail. Opened Safari. Set pref back to my normal default browser. Quit Safari. "Open location" still works.

Yay.

Well, that's killed 3 hours of my day.

If anyone has a rational explanation as to what's going on here, it'd be much appreciated.

Anyhow, thanks for the help Philip.

Simon _______________________________________________
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: open location "message://<xyz>" now fails
      • From: Philip Aker <email@hidden>
References: 
 >open location "message://<xyz>" now fails (From: Simon Forster <email@hidden>)
 >Re: open location "message://<xyz>" now fails (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: FileMaker 9 finds
  • Next by Date: Re: open location "message://<xyz>" now fails
  • Previous by thread: Re: open location "message://<xyz>" now fails
  • Next by thread: Re: open location "message://<xyz>" now fails
  • Index(es):
    • Date
    • Thread