The silly thing compiles now
[ITFoundation.git] / ITOSAScript.h
1 /*
2  *      ITFoundation
3  *      ITOSAScript
4  *          An extended NSAppleScript that allows any OSA language.
5  *
6  *      Original Author : Kent Sutherland <ksutherland@ithinksw.com>
7  *      Responsibility : Kent Sutherland <ksutherland@ithinksw.com>
8  *      Responsibility : Joseph Spiros <joseph.spiros@ithinksw.com>
9  *
10  *      Copyright (c) 2002 - 2004 iThink Software.
11  *      All Rights Reserved
12  *
13  */
14
15 #import <Foundation/Foundation.h>
16 #import <Carbon/Carbon.h>
17
18 @class ITOSAComponent;
19
20 @interface ITOSAScript : NSObject {
21     NSString *_source;
22     ITOSAComponent *_component;
23     OSAID _scriptID;
24 }
25
26 - (id)initWithContentsOfFile:(NSString *)path;
27 - (id)initWithSource:(NSString *)source;
28
29 - (NSString *)source;
30
31 - (ITOSAComponent *)component;
32 - (void)setComponent:(ITOSAComponent *)newComponent;
33
34 - (BOOL)compileAndReturnError:(NSDictionary **)errorInfo;
35 - (BOOL)isCompiled;
36
37 - (NSAppleEventDescriptor *)executeAndReturnError:(NSDictionary **)errorInfo;
38
39 @end