//
//  MCRemoteAppleScriptApplication.h
//  MCApplication
//
//  Created by Alykhan Jetha on Tue Apr 15 2003.
//  Copyright (c) 2003 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface MCRemoteAppleScriptApplication : NSObject {

	NSMutableDictionary *errorInfo;

}

+ sharedInterface;


- (NSString*)runScript:(NSString*)scriptText;
- (NSString *)fullApplicationName;
- (NSString *)applicationVersionString;

- (BOOL)isAppLaunched;
- (BOOL)launchApp;
- (void)hideApp;

- (BOOL)openFile:(NSString *)aFile;
- (void)saveCurrentDocumentToPath:(NSString *)aPath replaceExisting:(BOOL)replace;
- (void)saveCurrentDocumentToPath:(NSString *)aPath replaceExisting:(BOOL)replace openDocument:(BOOL)open;
- (void)printCurrentDocument;
- (void)closeCurrentDocument;
- (BOOL)closeAllDocuments;

// Pre-Merge parsing support -- 3.7.2 and later
- (BOOL)supportsPreMergeParsing; // supports getting the raw text, figuring out all the keys beforehand and then only search and replacing those keys which exist
- (id)rawContent;
- (NSArray *)preParsedMergeKeys;

@end
