//
//  ASWAppleScriptExecutor.h
//  ASWFoundation
//
//  Created by Dominic Feira on 12/12/06.
//  Copyright 2006 __MyCompanyName__. All rights reserved.
//
// The callScript:withArrayOfParameters and callHandler:withParameters methods
// were lifted from AttachAScript sample code from apple

#pragma mark - ASWAppleScriptExecutor Is Deprecated -
#pragma mark - Use NSAppleScript + ASWHandlerCalls -

#import <Cocoa/Cocoa.h>
#import <Carbon/Carbon.h>

@interface ASWAppleScriptExecutor : NSObject 
{
	ComponentInstance mOSAScriptingComponent;
	OSAID mScriptID;
}

/*! Initialize an ASWApplScriptExecutor
 \param path Path to the applescript on disk.
 \result nil if unable to open the applescript file
 */
- (ASWAppleScriptExecutor*) initWithPath: (NSString*) path   __attribute__((deprecated));

- (NSAppleEventDescriptor *) callHandler: (NSString *) handler 
						   withArguments: (NSAppleEventDescriptor *) arguments 
							   errorInfo: (NSDictionary **) errorInfo   __attribute__((deprecated));
@end
