5 * Class that wraps OpenScripting scripts.
7 * Copyright (c) 2005 by iThink Software.
14 #import <Foundation/Foundation.h>
15 #import <Carbon/Carbon.h>
17 @class ITOSAComponent;
19 @interface ITOSAScript : NSObject {
21 ITOSAComponent *_component;
25 - (id)initWithContentsOfFile:(NSString *)path;
26 - (id)initWithSource:(NSString *)source;
30 - (ITOSAComponent *)component;
31 - (void)setComponent:(ITOSAComponent *)newComponent;
33 - (BOOL)compileAndReturnError:(NSDictionary **)errorInfo;
36 - (NSAppleEventDescriptor *)executeAndReturnError:(NSDictionary **)errorInfo;