• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: run script from browser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >run script from browser (From: Rick Frank <email@hidden>)

  • Prev by Date: Re: finding out the name of the script file (solved)
  • Next by Date: Re: run script from browser
  • Previous by thread: run script from browser
  • Next by thread: Re: run script from browser
  • Index(es):
    • Date
    • Thread