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:
The AppleScript will reside on the user’s computer
The button will pass the AppleScript a parameter
Multiple users will access the site so each user’s script may be located in a different directory.
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.