chinna_82
chinna_82

Reputation: 6403

Call Applescript from JavaScript

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

Answers (2)

bezmax
bezmax

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

user149341
user149341

Reputation:

You cannot run AppleScript code from a web page. (That would be an incredibly serious security issue.)

Upvotes: 2

Related Questions