Setting an applescript as the default web-browser

Hi,

I’ve written an AppleScript that I want to set as my systems default web-browser. The script uses the “on open Location” handler to trap URLS and send specific urls to specific web-browsers. The script works great, but I can’t seem to get it to stick as the default web-browser. I think the problem is that all applescripts have the same creator code and the system can’t figure out which applescript to call. I set my script as the default, but almost immediately it changes to some other seemingly random applescript. If I delete all other apple Scripts from my machine the app works great. I’ve tried making up a creator code and assigning it to the script, but that still didn’t seem to work. Does anyone have any insights on how to make the system see my script as a unique application?

Thank you,

David Harris

Sure!
Here is a sample project:
http://homepage.mac.com/julifos/sample_protocol_helper.sit

Basically, you must modify the “plst” resource to match a unique signature. (and most probably the creator code, too, as you figured out)

Perfect!

I knew there was a missing piece.

Thanks for the help,

David