Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password

Mac > Mac Programmer Help > Using CLI to re...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 3794 of 3849
Post > Topic >>

Using CLI to register an application to handle URIs

by Simon Slavin <slavins.delete.these.four.words@[EMAIL PROTECTED] Jul 4, 2008 at 07:38 PM

I have invented a new kind of URI (don't ask) which looks something like
this:

<myURIType:resourcestring>

I need to be able to register my application to handle URIs of this type. 
While testing I did this using the Preference Pane called 'More Internet'.
It worked fine.  But I don't want to have to tell all my users to register
this preference pane.

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 ?

I've looked at com.apple.launchServices.plist, which I could edit very
easily using the 'defaults' command.  But instead of a pointer to the
application it seems to have a dynamic string.  I don't understand the
value of this string.

Simon.
-- 
http://www.hearsay.demon.co.uk
 



 3 Posts in Topic:
Using CLI to register an application to handle URIs
Simon Slavin <slavins.  2008-07-04 19:38:30 
Re: Using CLI to register an application to handle URIs
Sherman Pendley <spamt  2008-07-04 15:18:03 
Re: Using CLI to register an application to handle URIs
Simon Slavin <slavins.  2008-07-05 02:18:17 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Oct 7 19:05:58 CDT 2008.