Re: Launching application through web browser(netscape/IE)
Re: Launching application through web browser(netscape/IE)
- Subject: Re: Launching application through web browser(netscape/IE)
- From: JJ <email@hidden>
- Date: Fri, 19 Jul 2002 15:40:18 +0200
>
Hi,
>
>
Is there any way to use the applescript or any scripting language to
>
directly launch an application which is present on a machine by running it
>
through web browsers.
>
>
Can I sent an apple event through a browser to directly launch an
>
application.
>
>
Code snippet will be very useful since I am a newbie in this area.
Using JScript's ActiveX events will only work under windows and the way to
do this through applescript is a little bit of long and a little bit of
confuse. You need make an applet-droplet handling a "GURLGURL" event:
on <<event GURLGURL>> (some_stuff)
-- do whatever you want
end <<event GURLGURL>>
Then, configurate it as an application helper to handle some special
protocol, such as "launchapp://Finder" (as if it was "
mailto:" with Eudora
or "hotline:" with Pitbull). Then, the end-user that configurated correctly
your handler-app, will click under your link, and this will happen:
<click> (link to "launchapp://Finder")
<IE or Netscape>: hey, man, handler-app, handle this:
<<event GURLGURL>> "launchapp://Finder"
<handler-applescript-app>
on <<event GURLGURL>> (some_stuff)
if some_stuff contains "Finder" then
tell application "Finder" to activate
end if
end <<event GURLGURL>>
This handler-app needs a single-original signature (creator code), so the
browser can distinguis between Pitbull ("PitB") and your app (not "aplt" or
"dplt", but "lnCh" or "cTaP" or "xxxx" or ...)
...
JJ
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.comm
_______________________________________________
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.