Click a button on a web page to launch a script app.

I’m creating an in-house web application and I want users to have the ability to click a button on a web page and launch an compiled AppleScript. Key Issues:

  1. The AppleScript will reside on the user’s computer
  2. The button will pass the AppleScript a parameter
  3. Multiple users will access the site so each user’s script may be located in a different directory.

Is this possible?

Thanks

Not exactly (and there are lots of security reasons why this is not possible) but what you could do is have a folder action running on the user’s downloads folder. Have them option-click the link to a text file with a specific name whose contents is the variable data and then have the folder action check the file name, if it matches a set criteria then read the contents of the file and do something accordingly. Not terribly elegant but probably functional.

Jon