• 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: Is it possible to register an AS app as a custom URL handler?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is it possible to register an AS app as a custom URL handler?


  • Subject: Re: Is it possible to register an AS app as a custom URL handler?
  • From: Walter Ian Kaye <email@hidden>
  • Date: Mon, 17 May 2004 01:10:48 -0700

At 02:25a -0400 05/17/2004, Jeff Porten didst inscribe upon an electronic papyrus:

1) registering an AS app as a URL handler seems to randomly pick any AS app from the hard drive, rather than *my* app

2) changing the creator code doesn't seem to help matters any

The creator code of the applet file is only the tip of the iceberg. You must also edit the 'BNDL' resource using ResEdit (or ResFool for OS X).
NB: If you recompile the applet, it will DESTROY any customizations you have made, so your "build process" MUST include keeping a separate resource file with your custom codes, from which you copy the resources back to the applet after any recompilation. Such resources include one or more of the following: BNDL, FREF, ICN#/ics#/icl8/ics8/icns, ICON/cicn, vers, plst, ...

If your applet is an .app bundle rather than a resource fork-based applet, then you'll have things like an Info.plist file and others which require a similar method of keeping separate master files which you copy into the .app bundle as part of your build process.

3) I haven't the slightest idea WHAT is being sent by the command, or how to parse it. I assume that what's coming in is an Open URL event -- so how do I deal with that?

Actually it's a Get URL, not Open URL:

on <<event GURLGURL>> theURL
--your code here; test by displaying what you get so you know what it is
end

There's actually terminology for it; I just can't remember offhand exactly what it is. handle something or other. The << and >> should be the real chevrons, Option+\ and Option+Shift+\.


-W
Oh, that's next door. It's "Getting Hit on the Head Lessons" in here.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Is it possible to register an AS app as a custom URL handler?
      • From: Joshua See <email@hidden>
References: 
 >Is it possible to register an AS app as a custom URL handler? (From: Jeff Porten <email@hidden>)

  • Prev by Date: Re: Shutdown script
  • Next by Date: Re: Internet Explorer Dialog Question
  • Previous by thread: Is it possible to register an AS app as a custom URL handler?
  • Next by thread: Re: Is it possible to register an AS app as a custom URL handler?
  • Index(es):
    • Date
    • Thread