Fixing project references due to the previous upgrade from .xcode to .xcodeproj.
[ITMac.git] / ITOSAScript.h
1 /*
2  *      ITMac
3  *      ITOSAScript.h
4  *
5  *      Class that wraps OpenScripting scripts.
6  *
7  *      Copyright (c) 2005 by iThink Software.
8  *      All Rights Reserved.
9  *
10  *      $Id$
11  *
12  */
13
14 #import <Foundation/Foundation.h>
15 #import <Carbon/Carbon.h>
16
17 @class ITOSAComponent;
18
19 @interface ITOSAScript : NSObject {
20         NSString *_source;
21         ITOSAComponent *_component;
22         OSAID _scriptID;
23 }
24
25 - (id)initWithContentsOfFile:(NSString *)path;
26 - (id)initWithSource:(NSString *)source;
27
28 - (NSString *)source;
29
30 - (ITOSAComponent *)component;
31 - (void)setComponent:(ITOSAComponent *)newComponent;
32
33 - (BOOL)compileAndReturnError:(NSDictionary **)errorInfo;
34 - (BOOL)isCompiled;
35
36 - (NSAppleEventDescriptor *)executeAndReturnError:(NSDictionary **)errorInfo;
37
38 @end