Handling New Protocol

I’m trying to figure out a way to have my script handle a new protocol in the background.

Such as:
Click on link: abc://123.123.123.123:12321 from Safari

And the applescript cuts off everythign but the ip and launches it in a different application.

Running in the background is easy…but I haven’t figured out a way to have it handle a new protocol in Safari.

Any help is much appreciated.

see…

http://www.monkeyfood.com/software/MoreInternet/ (More Internet)

or

http://www.mhtc.net/~bunnz/scriptlink.html (missing link)

I’ll check into it, thanks.

MoreInternet is semi-useful.

It can launch the program, but I have no way to use that url I clicked on.

See you can’t go straight from url to application.
I need to make that application that allows it to launch the application with certain commands.

Is there any way to obtain the url you clicked on?
Because thats what I need.

Any help again is much appreciated.