Is this an AppleScriptObjC or Objective-C project? If the former, you can use regular AppleScript statements and/or call handlers in other script files, if the latter you can use the NSAppleScript class or add an AppleScriptObjC class.
If you are talking about connecting a button to your code, create an action handler/method (if it has the correct signature it will appear inn the Interface Editor), and connect it to the button, for example:
0 comments:
Post a Comment