-
Notifications
You must be signed in to change notification settings - Fork 1
/
ScriptBridge.h
46 lines (30 loc) · 1.34 KB
/
ScriptBridge.h
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
* ScriptBridge.h
*/
#import <AppKit/AppKit.h>
#import <ScriptingBridge/ScriptingBridge.h>
@class ScriptBridgeExpanDrive, ScriptBridgeDrive;
/*
* ExpanDrive Terminology
*/
// An application's top level scripting object.
@interface ScriptBridgeExpanDrive : SBApplication
- (SBElementArray *) drives;
@property (copy, readonly) NSString *name; // The name of the application.
@property (readonly) BOOL frontmost; // Is this the frontmost (active) application?
@property (copy, readonly) NSString *version; // The version of the application.
- (void) connect:(id)x; // Connect the drive to its server.
@end
@interface ScriptBridgeDrive : SBObject
@property (copy) NSString *server; // The server
@property (copy) NSString *username; // The username
@property (copy) NSString *port; // The port
@property (copy) NSString *drivename; // The name / nickname / mount point for the drive
@property (readonly) BOOL isConnected; // True if the drive is currently connected / mounted.
@property (copy, readonly) NSString *url; // The unique server url.
@property (copy) NSString *remotePath; // The path on the server to connect to.
- (void) delete; // Delete an object.
- (BOOL) exists; // Verify if an object exists.
- (void) connect; // Connect the drive to its server.
- (void) eject; // Eject the drive by disconnecting it from the server.
@end