Calling AppleScriptObjC files from Objective-C
The first thing is to import the AppleScriptObjC framework into your project.
Right-click on Frameworks and choose Add Exisiting Frameworks.
Next, change the main.m file as follows.
Objective-C requires that you add an #import statement when accessing methods from another class file. AppleScriptObjC does not have a header file so there is no way to use the #import statement for this purpose.
There are two ways that I know of to accomplish this task. One is using the function NSClassFromString(). The second is to create an IBOutlet and connect to it in Interface Builder.
