Re: run script from browser
Re: run script from browser
- Subject: Re: run script from browser
- From: Emmanuel <email@hidden>
- Date: Thu, 25 Aug 2005 14:50:35 +0200
At 11:10 AM -0400 8/24/05, Rick Frank wrote:
Is there a way to have an applescript run on a users local machine in response
to a button click on a browser?
A way not too complicated could be to install Smile in the user's
machine. Smile catches the URLs in the form:
"smile://[someprotocol][somedata]". By default Smile handles only a
few "protocols" which do relatively safe things, such as importing a
script or opening a help file. To add your own URL handler, you would
just make a short library with your own "on open location theURL".
How to add a library to Smile is at:
<http://www.satimage-software.com/en/libraries.html>
Example:
make a text file with:
on open location theURL
-- get sure it's yours
if theURL does not begin with "smile://rfprotocol" then return
-- now handle it
if theURL ends with "beep" then beep
end
Compile it (and/or save it as described in the page above.)
Now write your link as:
<a href="smile://rfprotocol&beep">Click here to make a nice sound!</a>
Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden