Loads the suite definition encapsulated in
dictionary; previously, this suite definition was parsed from a
.script property list contained in a framework or in
- macOS 10.0+
The method extracts information from the dictionary and caches it in various internal collection objects. If keys are missing or values are of the wrong type, it logs messages to the console. It also registers class descriptions and command descriptions. In registering a class description, it invokes the
NSClass class method
register(_:. In registering a command description, it arranges for the Apple event translator to handle incoming Apple events that represent the defined commands.
This method is invoked when the shared instance is initialized and when bundles are loaded at runtime. Prior to invoking it,
NSScript creates the dictionary argument from the
.script property list. If you invoke this method in your code, you should try to do it before the application receives its first Apple event.