• 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: Joshua See <email@hidden>
  • Date: Mon, 17 May 2004 09:35:59 -0500

On May 17, 2004, at 3:10 AM, Walter Ian Kaye wrote:
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, ...
I noticed that at least on resource fork script applications, Smile won't wipe out customizations on a normal save. Also, I got away with not having to set BNDLs or FREFs since no files were involved, but changing the plst was necessary. Open it with the text template in ResEdit to make it easier to read and change.

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.
Use Studio if you go with a bundle, PorjectBuilder/Xcode have provisions for building with customized non-code files.

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+\.
on open location theURL . There is also and <<event GURLMAIL>>, but it looks like that is an OS 9 leftover.
--
Sincerely,
Joshua See
_______________________________________________
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.


References: 
 >Is it possible to register an AS app as a custom URL handler? (From: Jeff Porten <email@hidden>)
 >Re: Is it possible to register an AS app as a custom URL handler? (From: Walter Ian Kaye <email@hidden>)

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