Reputation: 6403
I'm trying to call applescript from javascript. Is it possible to call applescript from javascript. Appreciated if anyone could provide some sample code or any references link.
Upvotes: 1
Views: 3229
Reputation: 26122
In case you are running it in your own network (all computers are in your control), you can use this solution:
http://www.macosxautomation.com/applescript/linktrigger/index.html
Basically, the idea is to register some protocol with applescript launcher which will be used to launch your applescripts.
Again, it only works if all the user machines are under your direct control. It will not work for some random person coming to your page.
Upvotes: 2
Reputation:
You cannot run AppleScript code from a web page. (That would be an incredibly serious security issue.)
Upvotes: 2