Re: Using CLI to register an application to handle URIs
by Simon Slavin <slavins.delete.these.four.words@[EMAIL PROTECTED]
Jul 5, 2008 at 02:18 AM
On 04/07/2008, Simon Slavin wrote in
message
<g4lqs9$266$1$8300dec7@[EMAIL PROTECTED]
>:
> I've looked at the do***entation for Launch Services and it's all in
> Carbon, and doesn't do***ent how to set URI handlers. My handler is an
> AppleScript and ideally I want to be able to set the handler for my type
> of URI using a command line (trivial from AppleScript). Can URI
handlers
> be set this way ?
Sherman Pendley <spamtrap@[EMAIL PROTECTED]
> replied:
> Add a CFBundleURLTypes key to your app's Info.plist. Launch Services
> will parse it at the same time as it parses the CFBundleDo***entTypes
> key.
I had to add those types to the application after it was created. So the
application was right there, already parsed, and then I added the Types,
but that didn't make Launch Services parse the application again. So it
didn't work correctly for me.
But after reading your response I sent the application to a friend and it
worked for him without anything special. That's great. Thanks for your
help.
Simon.
--
http://www.hearsay.demon.co.uk