View Sidebar
Open AppleScript window from a html page

Open AppleScript window from a html page

November 5, 2013 15:46

Open Applescript window from a html page

Use following code as a href to anchor tag in html

applescript://com.apple.scripteditor?action=new&script=' + scriptcode

The “scriptcode” can contain any command you want to pass to the Applescript window.

This can be mostly useful when you want to generate a dynamic Applescript code from you web applications and pass command to Mac OS or applications. Details/Examples coming up in next few posts.

Note: While testing the link only works in safari, as its a default browser for Mac.

If you like the article please share

Leave a reply