5 * Class that wraps OpenScripting scripts.
7 * Copyright (c) 2005 iThink Software
11 #import <Foundation/Foundation.h>
12 #import <Carbon/Carbon.h>
14 @class ITOSAComponent;
16 @interface ITOSAScript : NSObject {
18 ITOSAComponent *_component;
22 - (id)initWithContentsOfFile:(NSString *)path;
23 - (id)initWithSource:(NSString *)source;
27 - (ITOSAComponent *)component;
28 - (void)setComponent:(ITOSAComponent *)newComponent;
30 - (BOOL)compileAndReturnError:(NSDictionary **)errorInfo;
33 - (NSAppleEventDescriptor *)executeAndReturnError:(NSDictionary **)errorInfo;