First, I'm totally new to Obj-C please go easy on me :D
I'm building an application, which basically does the same thing that AppleScript Editor does.
I have used an OSAScriptView, and what I would like to do is to save the contents of this OSAScriptView as a .scpt file in a predefined folder. (like /documents/myscripts/newscript.scpt)
Thanks in advance!
The class
OSAScript
contains the method you are looking for.You can create it yourself, or use the class
OSAScriptController
, which will create one automatically.