4 * An extended NSAppleScript that allows any OSA language.
6 * Original Author : Kent Sutherland <ksutherland@ithinksw.com>
7 * Responsibility : Kent Sutherland <ksutherland@ithinksw.com>
8 * Responsibility : Joseph Spiros <joseph.spiros@ithinksw.com>
10 * Copyright (c) 2002 - 2004 iThink Software.
15 #import <Foundation/Foundation.h>
16 #import <Carbon/Carbon.h>
18 @class ITOSAComponent;
20 @interface ITOSAScript : NSObject {
22 ITOSAComponent *_component;
26 - (id)initWithContentsOfFile:(NSString *)path;
27 - (id)initWithSource:(NSString *)source;
30 - (ITOSAComponent *)component;
31 - (void)setComponent:(ITOSAComponent *)newComponent;
33 - (BOOL)compileAndReturnError:(NSDictionary **)errorInfo;
35 - (NSString *)executeAndReturnError:(NSDictionary **)errorInfo;