Re: Parsing Link Information
Re: Parsing Link Information
- Subject: Re: Parsing Link Information
- From: "Daniel A. Shockley" <email@hidden>
- Date: Thu, 2 Jan 2003 14:42:06 -0500
Gary,
All you need to include in your AppleScript applet is an 'on open
location someVariableName' block. This is similar to the 'on open
listOfFilesVariable' blocks used in droplets. One issue is that
you'll need to get a unique creator code for your applet, since the
default one is used by ALL AppleScript-based applets, and thus
clicking a 'gary' link might open some other random applet. You could
download my Yahoo Mailto Handler to see how I did it, although I
haven't gotten around to dealing with the new Mac OS X-style of
unique application definition. My website is
<
http://www.danshockley.com>
Here's a simple example:
on open location someURL
display dialog someURL
end open location
When clicking a link that is
href="gary:/Applications/AddressBook.app" the applet shows:
gary:/Applications/AddressBook.app
in a dialog box. You can do what you want with the variable from there.
Date: Mon, 30 Dec 2002 18:27:34 -0500
Subject: Parsing Link Information
From: Gary Wood <email@hidden>
To: AppleScript Users <email@hidden>
I have set up a system of launching files from Explorer. (Beyond the file
types that are already registered, and beyond applications.)
...
For instance, in my psueduo-protocol (which works when NOT passing data, but
fails when passing data), I want to be able to access the X/Y/Z in the
following:
gary://X/Y/Z
Although I can't see the events being fired off by IE, I can imagine that
the protocol triggers some event and then passes along the X/Y/Z.
Does anyone know how to reference what is passed along?
For instance, if you were to click a URL <ftp://some.server/path/>
I can see that my FTP client (as registered in Helper Apps) gets invoked and
then must get the "some.server/path/" information in some form.
If the helper app is an applescript application, in what form is that
information being passed?
Any guidance or reference is appreciated.
Gary
--
----
Daniel A. Shockley
email@hidden
email@hidden
http://www.danshockley.com
_______________________________________________
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.