summaryrefslogtreecommitdiff
path: root/QSFoundation.framework/Versions/A/PrivateHeaders/NSAppleScript_BLTRExtensions.h
blob: 8a3aee6764b2725d626e3a8120a5257c90f575da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//
//  NSAppleScript_BLTRExtensions.h
//  Quicksilver
//
//  Created by Alcor on Thu Aug 28 2003.
//  Copyright (c) 2003 Blacktree. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface NSAppleScript (Subroutine)
- (NSAppleEventDescriptor *)executeSubroutine:(NSString *)name arguments:(id)arguments error:(NSDictionary **)errorInfo;
- (BOOL)storeInFile:(NSString *)path;
@end

@interface NSAppleScript (Constructors)
+ (NSAppleScript *)scriptWithContentsOfFile:(NSString *)path;
+ (NSAppleScript *)scriptWithContentsOfResource:(NSString *)path inBundle:(NSBundle *)bundle;
@end


@interface NSAppleEventDescriptor (CocoaConversion)
+ (NSAppleEventDescriptor *)descriptorWithObjectAPPLE:(id)object;
- (id)objectValueAPPLE;
@end

@interface NSAppleScript (FilePeeking)
+ (NSArray *)validHandlersFromArray:(NSArray *)array inScriptFile:(NSString *)path;
@end