This is a useful starting point, and you could copy and paste this XML into your own SDEF file.However, in the interest of clean code, it’s not a good idea to leave your SDEF file full of commands and objects that your app does not support.
The first is Apple Script, introduced with Mac System 7 in 1991, which uses an English-like syntax to make it usable by coders and non-coders alike.
The second is Java Script for Automation (JXA), introduced by OSX Yosemite, which lets coders use the familiar Java Script syntax to build their automation tasks.
This file lives in your app project and specifies several things: In order to make classes in your app scriptable, there are a few changes you’ll need to make to the app.
First, the scripting interface uses Key-Value-Coding to get and set the properties of objects.
As an app developer, it’s near impossible to think of all the ways people will want to use your app.