forked from lhagan/ShellHere
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Finder.h
818 lines (651 loc) · 40 KB
/
Finder.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
/*
* Finder.h
*/
#import <AppKit/AppKit.h>
#import <ScriptingBridge/ScriptingBridge.h>
@class FinderApplication, FinderItem, FinderContainer, FinderComputerObject, FinderDisk, FinderFolder, FinderDesktopObject, FinderTrashObject, FinderFile, FinderAliasFile, FinderApplicationFile, FinderDocumentFile, FinderInternetLocationFile, FinderClipping, FinderPackage, FinderWindow, FinderFinderWindow, FinderDesktopWindow, FinderInformationWindow, FinderPreferencesWindow, FinderClippingWindow, FinderApplication, FinderProcess, FinderApplicationProcess, FinderDeskAccessoryProcess, FinderPreferences, FinderLabel, FinderIconFamily, FinderIconViewOptions, FinderColumnViewOptions, FinderListViewOptions, FinderColumn, FinderAliasList;
typedef enum {
FinderIpnlGeneralInformationPanel = 'gpnl',
FinderIpnlSharingPanel = 'spnl',
FinderIpnlMemoryPanel = 'mpnl',
FinderIpnlPreviewPanel = 'vpnl',
FinderIpnlApplicationPanel = 'apnl',
FinderIpnlLanguagesPanel = 'pklg',
FinderIpnlPluginsPanel = 'pkpg',
FinderIpnlNameExtensionPanel = 'npnl',
FinderIpnlCommentsPanel = 'cpnl',
FinderIpnlContentIndexPanel = 'cinl'
} FinderIpnl;
typedef enum {
FinderPpleGeneralPreferencesPanel = 'pgnp',
FinderPpleLabelPreferencesPanel = 'plbp',
FinderPpleSidebarPreferencesPanel = 'psid',
FinderPpleAdvancedPreferencesPanel = 'padv'
} FinderPple;
typedef enum {
FinderEarrNotArranged = 'narr',
FinderEarrSnapToGrid = 'grda',
FinderEarrArrangedByName = 'nama',
FinderEarrArrangedByModificationDate = 'mdta',
FinderEarrArrangedByCreationDate = 'cdta',
FinderEarrArrangedBySize = 'siza',
FinderEarrArrangedByKind = 'kina',
FinderEarrArrangedByLabel = 'laba'
} FinderEarr;
typedef enum {
FinderEposRight = 'lrgt',
FinderEposBottom = 'lbot'
} FinderEpos;
typedef enum {
FinderSodrNormal = 'snrm',
FinderSodrReversed = 'srvs'
} FinderSodr;
typedef enum {
FinderIsizMini = 'miic',
FinderIsizSmall = 'smic',
FinderIsizLarge = 'lgic'
} FinderIsiz;
typedef enum {
FinderSortName = 'pnam',
FinderSortModificationDate = 'asmo',
FinderSortCreationDate = 'ascd',
FinderSortSize = 'phys',
FinderSortKind = 'kind',
FinderSortLabelIndex = 'labi',
FinderSortComment = 'comt',
FinderSortVersion = 'vers'
} FinderSort;
typedef enum {
FinderPrivReadOnly = 'read',
FinderPrivReadWrite = 'rdwr',
FinderPrivWriteOnly = 'writ',
FinderPrivNone = 'none'
} FinderPriv;
typedef enum {
FinderElsvNameColumn = 'elsn',
FinderElsvModificationDateColumn = 'elsm',
FinderElsvCreationDateColumn = 'elsc',
FinderElsvSizeColumn = 'elss',
FinderElsvKindColumn = 'elsk',
FinderElsvLabelColumn = 'elsl',
FinderElsvVersionColumn = 'elsv',
FinderElsvCommentColumn = 'elsC'
} FinderElsv;
typedef enum {
FinderEcvwIconView = 'icnv',
FinderEcvwListView = 'lsvw',
FinderEcvwColumnView = 'clvw',
FinderEcvwGroupView = 'grvw',
FinderEcvwFlowView = 'flvw'
} FinderEcvw;
typedef enum {
FinderLvicSmallIcon = 'smic',
FinderLvicLargeIcon = 'lgic'
} FinderLvic;
typedef enum {
FinderEdfmMacOSFormat = 'dfhf',
FinderEdfmMacOSExtendedFormat = 'dfh+',
FinderEdfmUFSFormat = 'dfuf',
FinderEdfmNFSFormat = 'dfnf',
FinderEdfmAudioFormat = 'dfau',
FinderEdfmProDOSFormat = 'dfpr',
FinderEdfmMSDOSFormat = 'dfms',
FinderEdfmNTFSFormat = 'dfnt',
FinderEdfmISO9660Format = 'df96',
FinderEdfmHighSierraFormat = 'dfhs',
FinderEdfmQuickTakeFormat = 'dfqt',
FinderEdfmApplePhotoFormat = 'dfph',
FinderEdfmAppleShareFormat = 'dfas',
FinderEdfmUDFFormat = 'dfud',
FinderEdfmWebDAVFormat = 'dfwd',
FinderEdfmFTPFormat = 'dfft',
FinderEdfmPacketWrittenUDFFormat = 'dfpu',
FinderEdfmXsanFormat = 'dfac',
FinderEdfmUnknownFormat = 'df\?\?'
} FinderEdfm;
/*
* Finder Basics
*/
// The Finder
@interface FinderApplication : SBApplication
- (SBElementArray *) items;
- (SBElementArray *) containers;
- (SBElementArray *) disks;
- (SBElementArray *) folders;
- (SBElementArray *) files;
- (SBElementArray *) aliasFiles;
- (SBElementArray *) applicationFiles;
- (SBElementArray *) documentFiles;
- (SBElementArray *) internetLocationFiles;
- (SBElementArray *) clippings;
- (SBElementArray *) packages;
- (SBElementArray *) windows;
- (SBElementArray *) FinderWindows;
- (SBElementArray *) clippingWindows;
@property (copy, readonly) SBObject *clipboard; // (NOT AVAILABLE YET) the Finder’s clipboard window
@property (copy, readonly) NSString *name; // the Finder’s name
@property BOOL visible; // Is the Finder’s layer visible?
@property BOOL frontmost; // Is the Finder the frontmost process?
@property (copy) SBObject *selection; // the selection in the frontmost Finder window
@property (copy, readonly) SBObject *insertionLocation; // the container in which a new folder would appear if “New Folder” was selected
@property (copy, readonly) NSString *productVersion; // the version of the System software running on this computer
@property (copy, readonly) NSString *version; // the version of the Finder
@property (copy, readonly) FinderDisk *startupDisk; // the startup disk
@property (copy, readonly) FinderDesktopObject *desktop; // the desktop
@property (copy, readonly) FinderTrashObject *trash; // the trash
@property (copy, readonly) FinderFolder *home; // the home directory
@property (copy, readonly) FinderComputerObject *computerContainer; // the computer location (as in Go > Computer)
@property (copy, readonly) FinderPreferences *FinderPreferences; // Various preferences that apply to the Finder as a whole
- (void) quit; // Quit the Finder
- (void) activate; // Activate the specified window (or the Finder)
- (void) copy; // (NOT AVAILABLE YET) Copy the selected items to the clipboard (the Finder must be the front application)
- (void) eject; // Eject the specified disk(s)
- (void) emptySecurity:(BOOL)security; // Empty the trash
- (void) restart; // Restart the computer
- (void) shutDown; // Shut Down the computer
- (void) sleep; // Put the computer to sleep
@end
/*
* Finder items
*/
// every item
@interface FinderItem : SBObject
@property (copy) NSString *name; // the name of the item
@property (copy, readonly) NSString *displayedName; // the user-visible name of the item
@property (copy) NSString *nameExtension; // the name extension of the item (such as “txt”)
@property BOOL extensionHidden; // Is the item's extension hidden from the user?
@property (readonly) NSInteger index; // the index in the front-to-back ordering within its container
@property (copy, readonly) SBObject *container; // the container of the item
@property (copy, readonly) SBObject *disk; // the disk on which the item is stored
@property NSPoint position; // the position of the item within its parent window (can only be set for an item in a window viewed as icons or buttons)
@property NSPoint desktopPosition; // the position of the item on the desktop
@property NSRect bounds; // the bounding rectangle of the item (can only be set for an item in a window viewed as icons or buttons)
@property NSInteger labelIndex; // the label of the item
@property BOOL locked; // Is the file locked?
@property (copy, readonly) NSString *kind; // the kind of the item
@property (copy, readonly) NSString *objectDescription; // a description of the item
@property (copy) NSString *comment; // the comment of the item, displayed in the “Get Info” window
@property (readonly) long long size; // the logical size of the item
@property (readonly) long long physicalSize; // the actual space used by the item on disk
@property (copy, readonly) NSDate *creationDate; // the date on which the item was created
@property (copy) NSDate *modificationDate; // the date on which the item was last modified
@property (copy) FinderIconFamily *icon; // the icon bitmap of the item
@property (copy, readonly) NSString *URL; // the URL of the item
@property (copy) NSString *owner; // the user that owns the container
@property (copy) NSString *group; // the user or group that has special access to the container
@property FinderPriv ownerPrivileges;
@property FinderPriv groupPrivileges;
@property FinderPriv everyonesPrivileges;
@property (copy, readonly) SBObject *informationWindow; // the information window for the item
@property (copy) NSDictionary *properties; // every property of an item
- (void) openUsing:(SBObject *)using_ withProperties:(NSDictionary *)withProperties; // Open the specified object(s)
- (void) printWithProperties:(NSDictionary *)withProperties; // Print the specified object(s)
- (void) activate; // Activate the specified window (or the Finder)
- (void) close; // Close an object
- (NSInteger) dataSizeAs:(NSNumber *)as; // Return the size in bytes of an object
- (SBObject *) delete; // Move an item from its container to the trash
- (SBObject *) duplicateTo:(SBObject *)to replacing:(BOOL)replacing routingSuppressed:(BOOL)routingSuppressed; // Duplicate one or more object(s)
- (BOOL) exists; // Verify if an object exists
- (SBObject *) moveTo:(SBObject *)to replacing:(BOOL)replacing positionedAt:(NSArray *)positionedAt routingSuppressed:(BOOL)routingSuppressed; // Move object(s) to a new location
- (void) select; // Select the specified object(s)
- (SBObject *) sortBy:(SEL)by; // Return the specified object(s) in a sorted list
- (void) cleanUpBy:(SEL)by; // Arrange items in window nicely (only applies to open windows in icon view that are not kept arranged)
- (void) eject; // Eject the specified disk(s)
- (void) emptySecurity:(BOOL)security; // Empty the trash
- (void) erase; // (NOT AVAILABLE) Erase the specified disk(s)
- (void) reveal; // Bring the specified object(s) into view
- (void) updateNecessity:(BOOL)necessity registeringApplications:(BOOL)registeringApplications; // Update the display of the specified object(s) to match their on-disk representation
@end
/*
* Containers and folders
*/
// every container
@interface FinderContainer : FinderItem
- (SBElementArray *) items;
- (SBElementArray *) containers;
- (SBElementArray *) folders;
- (SBElementArray *) files;
- (SBElementArray *) aliasFiles;
- (SBElementArray *) applicationFiles;
- (SBElementArray *) documentFiles;
- (SBElementArray *) internetLocationFiles;
- (SBElementArray *) clippings;
- (SBElementArray *) packages;
@property (copy, readonly) SBObject *entireContents; // the entire contents of the container, including the contents of its children
@property (readonly) BOOL expandable; // (NOT AVAILABLE YET) Is the container capable of being expanded as an outline?
@property BOOL expanded; // (NOT AVAILABLE YET) Is the container opened as an outline? (can only be set for containers viewed as lists)
@property BOOL completelyExpanded; // (NOT AVAILABLE YET) Are the container and all of its children opened as outlines? (can only be set for containers viewed as lists)
@property (copy, readonly) SBObject *containerWindow; // the container window for this folder
@end
// the Computer location (as in Go > Computer)
@interface FinderComputerObject : FinderItem
@end
// every disk
@interface FinderDisk : FinderContainer
- (SBElementArray *) items;
- (SBElementArray *) containers;
- (SBElementArray *) folders;
- (SBElementArray *) files;
- (SBElementArray *) aliasFiles;
- (SBElementArray *) applicationFiles;
- (SBElementArray *) documentFiles;
- (SBElementArray *) internetLocationFiles;
- (SBElementArray *) clippings;
- (SBElementArray *) packages;
- (NSInteger) id; // the unique id for this disk (unchanged while disk remains connected and Finder remains running)
@property (readonly) long long capacity; // the total number of bytes (free or used) on the disk
@property (readonly) long long freeSpace; // the number of free bytes left on the disk
@property (readonly) BOOL ejectable; // Can the media be ejected (floppies, CD's, and so on)?
@property (readonly) BOOL localVolume; // Is the media a local volume (as opposed to a file server)?
@property (readonly) BOOL startup; // Is this disk the boot disk?
@property (readonly) FinderEdfm format; // the filesystem format of this disk
@property (readonly) BOOL journalingEnabled; // Does this disk do file system journaling?
@property BOOL ignorePrivileges; // Ignore permissions on this disk?
@end
// every folder
@interface FinderFolder : FinderContainer
- (SBElementArray *) items;
- (SBElementArray *) containers;
- (SBElementArray *) folders;
- (SBElementArray *) files;
- (SBElementArray *) aliasFiles;
- (SBElementArray *) applicationFiles;
- (SBElementArray *) documentFiles;
- (SBElementArray *) internetLocationFiles;
- (SBElementArray *) clippings;
- (SBElementArray *) packages;
@end
// Desktop-object is the class of the “desktop” object
@interface FinderDesktopObject : FinderContainer
- (SBElementArray *) items;
- (SBElementArray *) containers;
- (SBElementArray *) disks;
- (SBElementArray *) folders;
- (SBElementArray *) files;
- (SBElementArray *) aliasFiles;
- (SBElementArray *) applicationFiles;
- (SBElementArray *) documentFiles;
- (SBElementArray *) internetLocationFiles;
- (SBElementArray *) clippings;
- (SBElementArray *) packages;
@end
// Trash-object is the class of the “trash” object
@interface FinderTrashObject : FinderContainer
- (SBElementArray *) items;
- (SBElementArray *) containers;
- (SBElementArray *) folders;
- (SBElementArray *) files;
- (SBElementArray *) aliasFiles;
- (SBElementArray *) applicationFiles;
- (SBElementArray *) documentFiles;
- (SBElementArray *) internetLocationFiles;
- (SBElementArray *) clippings;
- (SBElementArray *) packages;
@property BOOL warnsBeforeEmptying; // Display a dialog when emptying the trash?
@end
/*
* Files
*/
// every file
@interface FinderFile : FinderItem
@property (copy) NSNumber *fileType; // the OSType identifying the type of data contained in the item
@property (copy) NSNumber *creatorType; // the OSType identifying the application that created the item
@property BOOL stationery; // Is the file a stationery pad?
@property (copy, readonly) NSString *productVersion; // the version of the product (visible at the top of the “Get Info” window)
@property (copy, readonly) NSString *version; // the version of the file (visible at the bottom of the “Get Info” window)
@end
// every alias file
@interface FinderAliasFile : FinderFile
@property (copy) SBObject *originalItem; // the original item pointed to by the alias
@end
// every application file
@interface FinderApplicationFile : FinderFile
- (NSString *) id; // the bundle identifier or creator type of the application
@property (readonly) NSInteger suggestedSize; // (AVAILABLE IN 10.1 TO 10.4) the memory size with which the developer recommends the application be launched
@property NSInteger minimumSize; // (AVAILABLE IN 10.1 TO 10.4) the smallest memory size with which the application can be launched
@property NSInteger preferredSize; // (AVAILABLE IN 10.1 TO 10.4) the memory size with which the application will be launched
@property (readonly) BOOL acceptsHighLevelEvents; // Is the application high-level event aware? (OBSOLETE: always returns true)
@property (readonly) BOOL hasScriptingTerminology; // Does the process have a scripting terminology, i.e., can it be scripted?
@property BOOL opensInClassic; // (AVAILABLE IN 10.1 TO 10.4) Should the application launch in the Classic environment?
@end
// every document file
@interface FinderDocumentFile : FinderFile
@end
// all internet location files
@interface FinderInternetLocationFile : FinderFile
@property (copy, readonly) NSString *location; // the internet location
@end
// all clippings
@interface FinderClipping : FinderFile
@property (copy, readonly) SBObject *clippingWindow; // (NOT AVAILABLE YET) the clipping window for this clipping
@end
// all packages
@interface FinderPackage : FinderItem
@end
/*
* Window classes
*/
// every window
@interface FinderWindow : SBObject
- (NSInteger) id; // the unique id for this window
@property NSPoint position; // the upper left position of the window
@property NSRect bounds; // the boundary rectangle for the window
@property (readonly) BOOL titled; // Does the window have a title bar?
@property (copy, readonly) NSString *name; // the name of the window
@property NSInteger index; // the number of the window in the front-to-back layer ordering
@property (readonly) BOOL closeable; // Does the window have a close box?
@property (readonly) BOOL floating; // Does the window have a title bar?
@property (readonly) BOOL modal; // Is the window modal?
@property (readonly) BOOL resizable; // Is the window resizable?
@property (readonly) BOOL zoomable; // Is the window zoomable?
@property BOOL zoomed; // Is the window zoomed?
@property (readonly) BOOL visible; // Is the window visible (always true for open Finder windows)?
@property BOOL collapsed; // Is the window collapsed
@property (copy) NSDictionary *properties; // every property of a window
- (void) openUsing:(SBObject *)using_ withProperties:(NSDictionary *)withProperties; // Open the specified object(s)
- (void) printWithProperties:(NSDictionary *)withProperties; // Print the specified object(s)
- (void) activate; // Activate the specified window (or the Finder)
- (void) close; // Close an object
- (NSInteger) dataSizeAs:(NSNumber *)as; // Return the size in bytes of an object
- (SBObject *) delete; // Move an item from its container to the trash
- (SBObject *) duplicateTo:(SBObject *)to replacing:(BOOL)replacing routingSuppressed:(BOOL)routingSuppressed; // Duplicate one or more object(s)
- (BOOL) exists; // Verify if an object exists
- (SBObject *) moveTo:(SBObject *)to replacing:(BOOL)replacing positionedAt:(NSArray *)positionedAt routingSuppressed:(BOOL)routingSuppressed; // Move object(s) to a new location
- (void) select; // Select the specified object(s)
- (SBObject *) sortBy:(SEL)by; // Return the specified object(s) in a sorted list
- (void) cleanUpBy:(SEL)by; // Arrange items in window nicely (only applies to open windows in icon view that are not kept arranged)
- (void) eject; // Eject the specified disk(s)
- (void) emptySecurity:(BOOL)security; // Empty the trash
- (void) erase; // (NOT AVAILABLE) Erase the specified disk(s)
- (void) reveal; // Bring the specified object(s) into view
- (void) updateNecessity:(BOOL)necessity registeringApplications:(BOOL)registeringApplications; // Update the display of the specified object(s) to match their on-disk representation
@end
// every Finder window
@interface FinderFinderWindow : FinderWindow
@property (copy) SBObject *target; // the container at which this file viewer is targeted
@property FinderEcvw currentView; // the current view for the container window
@property (copy, readonly) FinderIconViewOptions *iconViewOptions; // the icon view options for the container window
@property (copy, readonly) FinderListViewOptions *listViewOptions; // the list view options for the container window
@property (copy, readonly) FinderColumnViewOptions *columnViewOptions; // the column view options for the container window
@property BOOL toolbarVisible; // Is the window's toolbar visible?
@property BOOL statusbarVisible; // Is the window's statusbar visible?
@property NSInteger sidebarWidth; // the width of the sidebar for the container window
@end
// the desktop window
@interface FinderDesktopWindow : FinderFinderWindow
@end
// An inspector window (opened by “Show Info”)
@interface FinderInformationWindow : FinderWindow
@property (copy, readonly) SBObject *item; // the item from which this window was opened
@property FinderIpnl currentPanel; // the current panel in the information window
@end
// The Finder Preferences window
@interface FinderPreferencesWindow : FinderWindow
@property FinderPple currentPanel; // The current panel in the Finder preferences window
@end
// every clipping window
@interface FinderClippingWindow : FinderWindow
@end
/*
* Legacy suite
*/
// The Finder
@interface FinderApplication (LegacySuite)
@property (copy) FinderFile *desktopPicture; // the desktop picture of the main monitor
@end
// every process
@interface FinderProcess : SBObject
@property (copy, readonly) NSString *name; // the name of the process
@property BOOL visible; // Is the process' layer visible?
@property BOOL frontmost; // Is the process the frontmost process?
@property (copy, readonly) SBObject *file; // the file from which the process was launched
@property (copy, readonly) NSNumber *fileType; // the OSType of the file type of the process
@property (copy, readonly) NSNumber *creatorType; // the OSType of the creator of the process (the signature)
@property (readonly) BOOL acceptsHighLevelEvents; // Is the process high-level event aware (accepts open application, open document, print document, and quit)?
@property (readonly) BOOL acceptsRemoteEvents; // Does the process accept remote events?
@property (readonly) BOOL hasScriptingTerminology; // Does the process have a scripting terminology, i.e., can it be scripted?
@property (readonly) NSInteger totalPartitionSize; // the size of the partition with which the process was launched
@property (readonly) NSInteger partitionSpaceUsed; // the number of bytes currently used in the process' partition
- (void) openUsing:(SBObject *)using_ withProperties:(NSDictionary *)withProperties; // Open the specified object(s)
- (void) printWithProperties:(NSDictionary *)withProperties; // Print the specified object(s)
- (void) activate; // Activate the specified window (or the Finder)
- (void) close; // Close an object
- (NSInteger) dataSizeAs:(NSNumber *)as; // Return the size in bytes of an object
- (SBObject *) delete; // Move an item from its container to the trash
- (SBObject *) duplicateTo:(SBObject *)to replacing:(BOOL)replacing routingSuppressed:(BOOL)routingSuppressed; // Duplicate one or more object(s)
- (BOOL) exists; // Verify if an object exists
- (SBObject *) moveTo:(SBObject *)to replacing:(BOOL)replacing positionedAt:(NSArray *)positionedAt routingSuppressed:(BOOL)routingSuppressed; // Move object(s) to a new location
- (void) select; // Select the specified object(s)
- (SBObject *) sortBy:(SEL)by; // Return the specified object(s) in a sorted list
- (void) cleanUpBy:(SEL)by; // Arrange items in window nicely (only applies to open windows in icon view that are not kept arranged)
- (void) eject; // Eject the specified disk(s)
- (void) emptySecurity:(BOOL)security; // Empty the trash
- (void) erase; // (NOT AVAILABLE) Erase the specified disk(s)
- (void) reveal; // Bring the specified object(s) into view
- (void) updateNecessity:(BOOL)necessity registeringApplications:(BOOL)registeringApplications; // Update the display of the specified object(s) to match their on-disk representation
@end
// every application process
@interface FinderApplicationProcess : FinderProcess
@property (copy, readonly) FinderApplicationFile *applicationFile; // the application file from which this process was launched
@end
// every desk accessory process
@interface FinderDeskAccessoryProcess : FinderProcess
@property (copy, readonly) SBObject *deskAccessoryFile; // the desk accessory file from which this process was launched
@end
/*
* Type Definitions
*/
// The Finder Preferences
@interface FinderPreferences : SBObject
@property (copy, readonly) FinderPreferencesWindow *window; // the window that would open if Finder preferences was opened
@property (copy, readonly) FinderIconViewOptions *iconViewOptions; // the default icon view options
@property (copy, readonly) FinderListViewOptions *listViewOptions; // the default list view options
@property (copy, readonly) FinderColumnViewOptions *columnViewOptions; // the column view options for all windows
@property BOOL foldersSpringOpen; // Spring open folders after the specified delay?
@property double delayBeforeSpringing; // the delay before springing open a container in seconds (from 0.167 to 1.169)
@property BOOL desktopShowsHardDisks; // Hard disks appear on the desktop?
@property BOOL desktopShowsExternalHardDisks; // External hard disks appear on the desktop?
@property BOOL desktopShowsRemovableMedia; // CDs, DVDs, and iPods appear on the desktop?
@property BOOL desktopShowsConnectedServers; // Connected servers appear on the desktop?
@property (copy) SBObject *newWindowTarget; // target location for a newly-opened Finder window
@property BOOL foldersOpenInNewWindows; // Folders open into new windows?
@property BOOL newWindowsOpenInColumnView; // Open new windows in column view?
@property BOOL allNameExtensionsShowing; // Show name extensions, even for items whose “extension hidden” is true?
- (void) openUsing:(SBObject *)using_ withProperties:(NSDictionary *)withProperties; // Open the specified object(s)
- (void) printWithProperties:(NSDictionary *)withProperties; // Print the specified object(s)
- (void) activate; // Activate the specified window (or the Finder)
- (void) close; // Close an object
- (NSInteger) dataSizeAs:(NSNumber *)as; // Return the size in bytes of an object
- (SBObject *) delete; // Move an item from its container to the trash
- (SBObject *) duplicateTo:(SBObject *)to replacing:(BOOL)replacing routingSuppressed:(BOOL)routingSuppressed; // Duplicate one or more object(s)
- (BOOL) exists; // Verify if an object exists
- (SBObject *) moveTo:(SBObject *)to replacing:(BOOL)replacing positionedAt:(NSArray *)positionedAt routingSuppressed:(BOOL)routingSuppressed; // Move object(s) to a new location
- (void) select; // Select the specified object(s)
- (SBObject *) sortBy:(SEL)by; // Return the specified object(s) in a sorted list
- (void) cleanUpBy:(SEL)by; // Arrange items in window nicely (only applies to open windows in icon view that are not kept arranged)
- (void) eject; // Eject the specified disk(s)
- (void) emptySecurity:(BOOL)security; // Empty the trash
- (void) erase; // (NOT AVAILABLE) Erase the specified disk(s)
- (void) reveal; // Bring the specified object(s) into view
- (void) updateNecessity:(BOOL)necessity registeringApplications:(BOOL)registeringApplications; // Update the display of the specified object(s) to match their on-disk representation
@end
// (NOT AVAILABLE YET) A Finder label (name and color)
@interface FinderLabel : SBObject
@property (copy) NSString *name; // the name associated with the label
@property NSInteger index; // the index in the front-to-back ordering within its container
@property (copy) NSColor *color; // the color associated with the label
- (void) openUsing:(SBObject *)using_ withProperties:(NSDictionary *)withProperties; // Open the specified object(s)
- (void) printWithProperties:(NSDictionary *)withProperties; // Print the specified object(s)
- (void) activate; // Activate the specified window (or the Finder)
- (void) close; // Close an object
- (NSInteger) dataSizeAs:(NSNumber *)as; // Return the size in bytes of an object
- (SBObject *) delete; // Move an item from its container to the trash
- (SBObject *) duplicateTo:(SBObject *)to replacing:(BOOL)replacing routingSuppressed:(BOOL)routingSuppressed; // Duplicate one or more object(s)
- (BOOL) exists; // Verify if an object exists
- (SBObject *) moveTo:(SBObject *)to replacing:(BOOL)replacing positionedAt:(NSArray *)positionedAt routingSuppressed:(BOOL)routingSuppressed; // Move object(s) to a new location
- (void) select; // Select the specified object(s)
- (SBObject *) sortBy:(SEL)by; // Return the specified object(s) in a sorted list
- (void) cleanUpBy:(SEL)by; // Arrange items in window nicely (only applies to open windows in icon view that are not kept arranged)
- (void) eject; // Eject the specified disk(s)
- (void) emptySecurity:(BOOL)security; // Empty the trash
- (void) erase; // (NOT AVAILABLE) Erase the specified disk(s)
- (void) reveal; // Bring the specified object(s) into view
- (void) updateNecessity:(BOOL)necessity registeringApplications:(BOOL)registeringApplications; // Update the display of the specified object(s) to match their on-disk representation
@end
// (NOT AVAILABLE YET) A family of icons
@interface FinderIconFamily : SBObject
@property (copy, readonly) id largeMonochromeIconAndMask; // the large black-and-white icon and the mask for large icons
@property (copy, readonly) id large8BitMask; // the large 8-bit mask for large 32-bit icons
@property (copy, readonly) id large32BitIcon; // the large 32-bit color icon
@property (copy, readonly) id large8BitIcon; // the large 8-bit color icon
@property (copy, readonly) id large4BitIcon; // the large 4-bit color icon
@property (copy, readonly) id smallMonochromeIconAndMask; // the small black-and-white icon and the mask for small icons
@property (copy, readonly) id small8BitMask; // the small 8-bit mask for small 32-bit icons
@property (copy, readonly) id small32BitIcon; // the small 32-bit color icon
@property (copy, readonly) id small8BitIcon; // the small 8-bit color icon
@property (copy, readonly) id small4BitIcon; // the small 4-bit color icon
- (void) openUsing:(SBObject *)using_ withProperties:(NSDictionary *)withProperties; // Open the specified object(s)
- (void) printWithProperties:(NSDictionary *)withProperties; // Print the specified object(s)
- (void) activate; // Activate the specified window (or the Finder)
- (void) close; // Close an object
- (NSInteger) dataSizeAs:(NSNumber *)as; // Return the size in bytes of an object
- (SBObject *) delete; // Move an item from its container to the trash
- (SBObject *) duplicateTo:(SBObject *)to replacing:(BOOL)replacing routingSuppressed:(BOOL)routingSuppressed; // Duplicate one or more object(s)
- (BOOL) exists; // Verify if an object exists
- (SBObject *) moveTo:(SBObject *)to replacing:(BOOL)replacing positionedAt:(NSArray *)positionedAt routingSuppressed:(BOOL)routingSuppressed; // Move object(s) to a new location
- (void) select; // Select the specified object(s)
- (SBObject *) sortBy:(SEL)by; // Return the specified object(s) in a sorted list
- (void) cleanUpBy:(SEL)by; // Arrange items in window nicely (only applies to open windows in icon view that are not kept arranged)
- (void) eject; // Eject the specified disk(s)
- (void) emptySecurity:(BOOL)security; // Empty the trash
- (void) erase; // (NOT AVAILABLE) Erase the specified disk(s)
- (void) reveal; // Bring the specified object(s) into view
- (void) updateNecessity:(BOOL)necessity registeringApplications:(BOOL)registeringApplications; // Update the display of the specified object(s) to match their on-disk representation
@end
// the icon view options
@interface FinderIconViewOptions : SBObject
@property FinderEarr arrangement; // the property by which to keep icons arranged
@property NSInteger iconSize; // the size of icons displayed in the icon view
@property BOOL showsItemInfo; // additional info about an item displayed in icon view
@property BOOL showsIconPreview; // displays a preview of the item in icon view
@property NSInteger textSize; // the size of the text displayed in the icon view
@property FinderEpos labelPosition; // the location of the label in reference to the icon
@property (copy) FinderFile *backgroundPicture; // the background picture of the icon view
@property (copy) NSColor *backgroundColor; // the background color of the icon view
- (void) openUsing:(SBObject *)using_ withProperties:(NSDictionary *)withProperties; // Open the specified object(s)
- (void) printWithProperties:(NSDictionary *)withProperties; // Print the specified object(s)
- (void) activate; // Activate the specified window (or the Finder)
- (void) close; // Close an object
- (NSInteger) dataSizeAs:(NSNumber *)as; // Return the size in bytes of an object
- (SBObject *) delete; // Move an item from its container to the trash
- (SBObject *) duplicateTo:(SBObject *)to replacing:(BOOL)replacing routingSuppressed:(BOOL)routingSuppressed; // Duplicate one or more object(s)
- (BOOL) exists; // Verify if an object exists
- (SBObject *) moveTo:(SBObject *)to replacing:(BOOL)replacing positionedAt:(NSArray *)positionedAt routingSuppressed:(BOOL)routingSuppressed; // Move object(s) to a new location
- (void) select; // Select the specified object(s)
- (SBObject *) sortBy:(SEL)by; // Return the specified object(s) in a sorted list
- (void) cleanUpBy:(SEL)by; // Arrange items in window nicely (only applies to open windows in icon view that are not kept arranged)
- (void) eject; // Eject the specified disk(s)
- (void) emptySecurity:(BOOL)security; // Empty the trash
- (void) erase; // (NOT AVAILABLE) Erase the specified disk(s)
- (void) reveal; // Bring the specified object(s) into view
- (void) updateNecessity:(BOOL)necessity registeringApplications:(BOOL)registeringApplications; // Update the display of the specified object(s) to match their on-disk representation
@end
// the column view options
@interface FinderColumnViewOptions : SBObject
@property NSInteger textSize; // the size of the text displayed in the column view
@property BOOL showsIcon; // displays an icon next to the label in column view
@property BOOL showsIconPreview; // displays a preview of the item in column view
@property BOOL showsPreviewColumn; // displays the preview column in column view
@property BOOL disclosesPreviewPane; // discloses the preview pane of the preview column in column view
- (void) openUsing:(SBObject *)using_ withProperties:(NSDictionary *)withProperties; // Open the specified object(s)
- (void) printWithProperties:(NSDictionary *)withProperties; // Print the specified object(s)
- (void) activate; // Activate the specified window (or the Finder)
- (void) close; // Close an object
- (NSInteger) dataSizeAs:(NSNumber *)as; // Return the size in bytes of an object
- (SBObject *) delete; // Move an item from its container to the trash
- (SBObject *) duplicateTo:(SBObject *)to replacing:(BOOL)replacing routingSuppressed:(BOOL)routingSuppressed; // Duplicate one or more object(s)
- (BOOL) exists; // Verify if an object exists
- (SBObject *) moveTo:(SBObject *)to replacing:(BOOL)replacing positionedAt:(NSArray *)positionedAt routingSuppressed:(BOOL)routingSuppressed; // Move object(s) to a new location
- (void) select; // Select the specified object(s)
- (SBObject *) sortBy:(SEL)by; // Return the specified object(s) in a sorted list
- (void) cleanUpBy:(SEL)by; // Arrange items in window nicely (only applies to open windows in icon view that are not kept arranged)
- (void) eject; // Eject the specified disk(s)
- (void) emptySecurity:(BOOL)security; // Empty the trash
- (void) erase; // (NOT AVAILABLE) Erase the specified disk(s)
- (void) reveal; // Bring the specified object(s) into view
- (void) updateNecessity:(BOOL)necessity registeringApplications:(BOOL)registeringApplications; // Update the display of the specified object(s) to match their on-disk representation
@end
// the list view options
@interface FinderListViewOptions : SBObject
- (SBElementArray *) columns;
@property BOOL calculatesFolderSizes; // Are folder sizes calculated and displayed in the window?
@property BOOL showsIconPreview; // displays a preview of the item in list view
@property FinderLvic iconSize; // the size of icons displayed in the list view
@property NSInteger textSize; // the size of the text displayed in the list view
@property (copy) FinderColumn *sortColumn; // the column that the list view is sorted on
@property BOOL usesRelativeDates; // Are relative dates (e.g., today, yesterday) shown in the list view?
- (void) openUsing:(SBObject *)using_ withProperties:(NSDictionary *)withProperties; // Open the specified object(s)
- (void) printWithProperties:(NSDictionary *)withProperties; // Print the specified object(s)
- (void) activate; // Activate the specified window (or the Finder)
- (void) close; // Close an object
- (NSInteger) dataSizeAs:(NSNumber *)as; // Return the size in bytes of an object
- (SBObject *) delete; // Move an item from its container to the trash
- (SBObject *) duplicateTo:(SBObject *)to replacing:(BOOL)replacing routingSuppressed:(BOOL)routingSuppressed; // Duplicate one or more object(s)
- (BOOL) exists; // Verify if an object exists
- (SBObject *) moveTo:(SBObject *)to replacing:(BOOL)replacing positionedAt:(NSArray *)positionedAt routingSuppressed:(BOOL)routingSuppressed; // Move object(s) to a new location
- (void) select; // Select the specified object(s)
- (SBObject *) sortBy:(SEL)by; // Return the specified object(s) in a sorted list
- (void) cleanUpBy:(SEL)by; // Arrange items in window nicely (only applies to open windows in icon view that are not kept arranged)
- (void) eject; // Eject the specified disk(s)
- (void) emptySecurity:(BOOL)security; // Empty the trash
- (void) erase; // (NOT AVAILABLE) Erase the specified disk(s)
- (void) reveal; // Bring the specified object(s) into view
- (void) updateNecessity:(BOOL)necessity registeringApplications:(BOOL)registeringApplications; // Update the display of the specified object(s) to match their on-disk representation
@end
// every list column
@interface FinderColumn : SBObject
@property NSInteger index; // the index in the front-to-back ordering within its container
@property (readonly) FinderElsv name; // the column name
@property FinderSodr sortDirection; // The direction in which the window is sorted
@property NSInteger width; // the width of this column
@property (readonly) NSInteger minimumWidth; // the minimum allowed width of this column
@property (readonly) NSInteger maximumWidth; // the maximum allowed width of this column
@property BOOL visible; // is this column visible
- (void) openUsing:(SBObject *)using_ withProperties:(NSDictionary *)withProperties; // Open the specified object(s)
- (void) printWithProperties:(NSDictionary *)withProperties; // Print the specified object(s)
- (void) activate; // Activate the specified window (or the Finder)
- (void) close; // Close an object
- (NSInteger) dataSizeAs:(NSNumber *)as; // Return the size in bytes of an object
- (SBObject *) delete; // Move an item from its container to the trash
- (SBObject *) duplicateTo:(SBObject *)to replacing:(BOOL)replacing routingSuppressed:(BOOL)routingSuppressed; // Duplicate one or more object(s)
- (BOOL) exists; // Verify if an object exists
- (SBObject *) moveTo:(SBObject *)to replacing:(BOOL)replacing positionedAt:(NSArray *)positionedAt routingSuppressed:(BOOL)routingSuppressed; // Move object(s) to a new location
- (void) select; // Select the specified object(s)
- (SBObject *) sortBy:(SEL)by; // Return the specified object(s) in a sorted list
- (void) cleanUpBy:(SEL)by; // Arrange items in window nicely (only applies to open windows in icon view that are not kept arranged)
- (void) eject; // Eject the specified disk(s)
- (void) emptySecurity:(BOOL)security; // Empty the trash
- (void) erase; // (NOT AVAILABLE) Erase the specified disk(s)
- (void) reveal; // Bring the specified object(s) into view
- (void) updateNecessity:(BOOL)necessity registeringApplications:(BOOL)registeringApplications; // Update the display of the specified object(s) to match their on-disk representation
@end
// A list of aliases. Use ‘as alias list’ when a list of aliases is needed (instead of a list of file system item references).
@interface FinderAliasList : SBObject
- (void) openUsing:(SBObject *)using_ withProperties:(NSDictionary *)withProperties; // Open the specified object(s)
- (void) printWithProperties:(NSDictionary *)withProperties; // Print the specified object(s)
- (void) activate; // Activate the specified window (or the Finder)
- (void) close; // Close an object
- (NSInteger) dataSizeAs:(NSNumber *)as; // Return the size in bytes of an object
- (SBObject *) delete; // Move an item from its container to the trash
- (SBObject *) duplicateTo:(SBObject *)to replacing:(BOOL)replacing routingSuppressed:(BOOL)routingSuppressed; // Duplicate one or more object(s)
- (BOOL) exists; // Verify if an object exists
- (SBObject *) moveTo:(SBObject *)to replacing:(BOOL)replacing positionedAt:(NSArray *)positionedAt routingSuppressed:(BOOL)routingSuppressed; // Move object(s) to a new location
- (void) select; // Select the specified object(s)
- (SBObject *) sortBy:(SEL)by; // Return the specified object(s) in a sorted list
- (void) cleanUpBy:(SEL)by; // Arrange items in window nicely (only applies to open windows in icon view that are not kept arranged)
- (void) eject; // Eject the specified disk(s)
- (void) emptySecurity:(BOOL)security; // Empty the trash
- (void) erase; // (NOT AVAILABLE) Erase the specified disk(s)
- (void) reveal; // Bring the specified object(s) into view
- (void) updateNecessity:(BOOL)necessity registeringApplications:(BOOL)registeringApplications; // Update the display of the specified object(s) to match their on-disk representation
@end