X-Git-Url: http://git.ithinksw.org/ITFoundation.git/blobdiff_plain/f52146424225e2d13a8fe7a29d703676c91d0d46..df39cd4b2c3878a5e447aec90ad1380591ef2698:/ITOSAScript.h diff --git a/ITOSAScript.h b/ITOSAScript.h index 8462951..547acc6 100755 --- a/ITOSAScript.h +++ b/ITOSAScript.h @@ -15,19 +15,25 @@ #import #import +@class ITOSAComponent; + @interface ITOSAScript : NSObject { NSString *_source; - unsigned long _scriptSubtype; + ITOSAComponent *_component; + OSAID _scriptID; } - (id)initWithContentsOfFile:(NSString *)path; - (id)initWithSource:(NSString *)source; - (NSString *)source; -- (void)setSource:(NSString *)newSource; -- (unsigned long)scriptSubtype; -- (void)setScriptSubtype:(unsigned long)newSubtype; -- (NSString *)execute; +- (ITOSAComponent *)component; +- (void)setComponent:(ITOSAComponent *)newComponent; + +- (BOOL)compileAndReturnError:(NSDictionary **)errorInfo; +- (BOOL)isCompiled; + +- (NSAppleEventDescriptor *)executeAndReturnError:(NSDictionary **)errorInfo; @end