/
Skim.sdef
1628 lines (1549 loc) · 72.4 KB
/
Skim.sdef
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
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0"?>
<!DOCTYPE dictionary SYSTEM "file://localhost/System/Library/DTDs/sdef.dtd">
<dictionary title="Skim Terminology">
<suite name="Standard Suite" code="core"
description="Common classes and commands for all applications.">
<cocoa name="NSCoreSuite"/>
<command name="open" code="aevtodoc" description="Open a document.">
<direct-parameter description="The file(s) to be opened.">
<type type="file"/>
<type type="file" list="yes"/>
</direct-parameter>
<result description="The opened document(s).">
<type type="document"/>
<type type="document" list="yes"/>
</result>
</command>
<enumeration name="save options" code="savo">
<enumerator name="yes" code="yes " description="Save the file."/>
<enumerator name="no" code="no " description="Do not save the file."/>
<enumerator name="ask" code="ask " description="Ask the user whether or not to save the file."/>
</enumeration>
<command name="close" code="coreclos" description="Close a document.">
<cocoa class="NSCloseCommand"/>
<direct-parameter type="specifier" description="the document(s) or window(s) to close."/>
<parameter name="saving" code="savo" type="save options" optional="yes" description="Should changes be saved before closing?">
<cocoa key="SaveOptions"/>
</parameter>
<parameter name="saving in" code="kfil" type="file" optional="yes" description="The file in which to save the document, if so.">
<cocoa key="File"/>
</parameter>
</command>
<command name="save" code="coresave" description="Save a document.">
<direct-parameter type="specifier" description="The document(s) or window(s) to save."/>
<parameter name="in" code="kfil" type="file" optional="yes" description="The file in which to save the document.">
<cocoa key="File"/>
</parameter>
<parameter name="as" code="fltp" type="text" optional="yes" description="The file format to use. Should be one of "PDF", "PDF Bundle", "PDF Without Notes", "PDF With Embedded Notes", "PostScript", "PostScript Without Notes", "DVI", "DVI Without Notes", "XDV", "XDV Without Notes", "Skim Notes", "Notes as Text", "Notes as RTF", "Notes as RTFD", and "Notes as FDF", or the name of a custom export template.">
<cocoa key="FileType"/>
</parameter>
</command>
<enumeration name="printing error handling" code="enum">
<enumerator name="standard" code="lwst" description="Standard PostScript error handling">
<cocoa boolean-value="NO"/>
</enumerator>
<enumerator name="detailed" code="lwdt" description="print a detailed report of PostScript errors">
<cocoa boolean-value="YES"/>
</enumerator>
</enumeration>
<record-type name="print settings" code="pset">
<property name="copies" code="lwcp" type="integer" description="the number of copies of a document to be printed">
<cocoa key="NSCopies"/>
</property>
<property name="collating" code="lwcl" type="boolean" description="Should printed copies be collated?">
<cocoa key="NSMustCollate"/>
</property>
<property name="starting page" code="lwfp" type="integer" description="the first page of the document to be printed">
<cocoa key="NSFirstPage"/>
</property>
<property name="ending page" code="lwlp" type="integer" description="the last page of the document to be printed">
<cocoa key="NSLastPage"/>
</property>
<property name="pages across" code="lwla" type="integer" description="number of logical pages laid across a physical page">
<cocoa key="NSPagesAcross"/>
</property>
<property name="pages down" code="lwld" type="integer" description="number of logical pages laid out down a physical page">
<cocoa key="NSPagesDown"/>
</property>
<property name="requested print time" code="lwqt" type="date" description="the time at which the desktop printer should print the document">
<cocoa key="NSPrintTime"/>
</property>
<property name="error handling" code="lweh" type="printing error handling" description="how errors are handled">
<cocoa key="NSDetailedErrorReporting"/>
</property>
<property name="fax number" code="faxn" type="text" description="for fax number">
<cocoa key="NSFaxNumber"/>
</property>
<property name="target printer" code="trpr" type="text" description="for target printer">
<cocoa key="NSPrinterName"/>
</property>
</record-type>
<command name="print" code="aevtpdoc" description="Print a document.">
<direct-parameter description="The file(s), document(s), or window(s) to be printed.">
<type type="file" list="yes"/>
<type type="specifier"/>
</direct-parameter>
<parameter name="with properties" code="prdt" type="print settings" optional="yes" description="The print settings to use.">
<cocoa key="PrintSettings"/>
</parameter>
<parameter name="print dialog" code="pdlg" type="boolean" optional="yes" description="Should the application show the print dialog?">
<cocoa key="ShowPrintDialog"/>
</parameter>
</command>
<command name="quit" code="aevtquit" description="Quit the application.">
<cocoa class="NSQuitCommand"/>
<parameter name="saving" code="savo" type="save options" optional="yes" description="Should changes be saved before quitting?">
<cocoa key="SaveOptions"/>
</parameter>
</command>
<command name="count" code="corecnte" description="Return the number of elements of a particular class within an object.">
<cocoa class="NSCountCommand"/>
<direct-parameter type="specifier" description="The objects to be counted."/>
<parameter name="each" code="kocl" type="type" optional="yes" description="The class of objects to be counted." hidden="yes">
<cocoa key="ObjectClass"/>
</parameter>
<result type="integer" description="The count."/>
</command>
<command name="delete" code="coredelo" description="Delete an object.">
<cocoa class="NSDeleteCommand"/>
<direct-parameter type="specifier" description="The object(s) to delete."/>
</command>
<command name="duplicate" code="coreclon" description="Copy an object.">
<cocoa class="NSCloneCommand"/>
<direct-parameter type="specifier" description="The object(s) to copy."/>
<parameter name="to" code="insh" type="location specifier" description="The location for the new copy or copies." optional="yes">
<cocoa key="ToLocation"/>
</parameter>
<parameter name="with properties" code="prdt" type="record" description="Properties to set in the new copy or copies right away." optional="yes">
<cocoa key="WithProperties"/>
</parameter>
</command>
<command name="exists" code="coredoex" description="Verify that an object exists.">
<cocoa class="NSExistsCommand"/>
<direct-parameter type="any" description="The object(s) to check."/>
<result type="boolean" description="Did the object(s) exist?"/>
</command>
<command name="make" code="corecrel" description="Create a new object.">
<cocoa class="NSCreateCommand"/>
<parameter name="new" code="kocl" type="type" description="The class of the new object.">
<cocoa key="ObjectClass"/>
</parameter>
<parameter name="at" code="insh" type="location specifier" optional="yes" description="The location at which to insert the object.">
<cocoa key="Location"/>
</parameter>
<parameter name="with data" code="data" type="any" optional="yes" description="The initial contents of the object.">
<cocoa key="ObjectData"/>
</parameter>
<parameter name="with properties" code="prdt" type="record" optional="yes" description="The initial values for properties of the object.">
<cocoa key="KeyDictionary"/>
</parameter>
<result type="specifier" description="The new object."/>
</command>
<command name="move" code="coremove" description="Move an object to a new location.">
<cocoa class="NSMoveCommand"/>
<direct-parameter type="specifier" description="The object(s) to move."/>
<parameter name="to" code="insh" type="location specifier" description="The new location for the object(s).">
<cocoa key="ToLocation"/>
</parameter>
</command>
<class name="application" code="capp"
description="The application's top level scripting object.">
<cocoa class="NSApplication"/>
<property name="name" code="pnam" type="text" access="r" description="The name of the application."/>
<property name="frontmost" code="pisf" type="boolean" access="r" description="Is this the active application?">
<cocoa key="isActive"/>
</property>
<property name="version" code="vers" type="text" access="r" description="The version number of the application."/>
<element type="document">
<cocoa key="orderedDocuments"/>
</element>
<element type="window" access="r">
<cocoa key="orderedWindows"/>
</element>
<responds-to command="open">
<cocoa method="handleOpenScriptCommand:"/>
</responds-to>
<responds-to command="print">
<cocoa method="handlePrintScriptCommand:"/>
</responds-to>
<responds-to command="quit">
<cocoa method="handleQuitScriptCommand:"/>
</responds-to>
</class>
<class name="document" code="docu"
description="A document.">
<cocoa class="NSDocument"/>
<property name="name" code="pnam" type="text" access="r" description="Its name.">
<cocoa key="displayName"/>
</property>
<property name="modified" code="imod" type="boolean" access="r" description="Has it been modified since the last save?">
<cocoa key="isDocumentEdited"/>
</property>
<property name="file" code="file" type="file" access="r" description="Its location on disk, if it has one.">
<cocoa key="fileURL"/>
</property>
<property name="path" code="ppth" type="text" access="r" hidden="yes"
description="The document's path.">
<cocoa key="fileName"/>
</property>
<responds-to command="close">
<cocoa method="handleCloseScriptCommand:"/>
</responds-to>
<responds-to command="print">
<cocoa method="handlePrintScriptCommand:"/>
</responds-to>
<responds-to command="save">
<cocoa method="handleSaveScriptCommand:"/>
</responds-to>
</class>
<class name="window" code="cwin"
description="A window.">
<cocoa class="NSWindow"/>
<property name="name" code="pnam" type="text" access="r" description="The title of the window.">
<cocoa key="title"/>
</property>
<property name="id" code="ID " type="integer" access="r" description="The unique identifier of the window.">
<cocoa key="uniqueID"/>
</property>
<property name="index" code="pidx" type="integer" description="The index of the window, ordered front to back.">
<cocoa key="orderedIndex"/>
</property>
<property name="bounds" code="pbnd" type="rectangle" description="The bounding rectangle of the window.">
<cocoa key="boundsAsQDRect"/>
</property>
<property name="closeable" code="hclb" type="boolean" access="r" description="Does the window have a close button?">
<cocoa key="hasCloseBox"/>
</property>
<property name="miniaturizable" code="ismn" type="boolean" access="r" description="Does the window have a minimize button?">
<cocoa key="isMiniaturizable"/>
</property>
<property name="miniaturized" code="pmnd" type="boolean" description="Is the window minimized right now?">
<cocoa key="isMiniaturized"/>
</property>
<property name="resizable" code="prsz" type="boolean" access="r" description="Can the window be resized?">
<cocoa key="isResizable"/>
</property>
<property name="visible" code="pvis" type="boolean" description="Is the window visible right now?">
<cocoa key="isVisible"/>
</property>
<property name="zoomable" code="iszm" type="boolean" access="r" description="Does the window have a zoom button?">
<cocoa key="isZoomable"/>
</property>
<property name="zoomed" code="pzum" type="boolean" description="Is the window zoomed right now?">
<cocoa key="isZoomed"/>
</property>
<property name="document" code="docu" type="document" access="r" description="The document whose contents are displayed in the window."/>
<responds-to command="close">
<cocoa method="handleCloseScriptCommand:"/>
</responds-to>
<responds-to command="print">
<cocoa method="handlePrintScriptCommand:"/>
</responds-to>
<responds-to command="save">
<cocoa method="handleSaveScriptCommand:"/>
</responds-to>
</class>
</suite>
<suite name="Text Suite" code="TEXT"
description="A set of basic classes for text processing.">
<cocoa name="NSTextSuite"/>
<value-type name="RGBA color" code="RGBA">
<cocoa class="NSColor"/>
</value-type>
<value-type name="RTF" code="RTF ">
<cocoa class="NSAttributedString"/>
</value-type>
<class name="rich text" plural="rich text" code="ricT"
description="Rich (styled) text">
<cocoa class="NSTextStorage"/>
<!-- this "type" element and the ones that follow, while they
contradict the DTD, are NOT errors. Cocoa Scripting in 10.4
uses them to accomplish certain type conversions. -->
<type type="text"/>
<property name="color" code="colr" type="RGBA color"
description="The color of the first character.">
<cocoa key="foregroundColor"/>
</property>
<property name="font" code="font" type="text"
description="The name of the font of the first character.">
<cocoa key="fontName"/>
</property>
<property name="size" code="ptsz" type="integer"
description="The size in points of the first character.">
<cocoa key="fontSize"/>
</property>
<property name="RTF" code="RTF " type="RTF"
description="The raw RTF data.">
<cocoa key="scriptingRTF"/>
</property>
<element type="character"/>
<element type="paragraph"/>
<element type="word"/>
<element type="attribute run"/>
<element type="attachment"/>
<responds-to name="join" hidden="yes">
<cocoa method=""/>
</responds-to>
<responds-to name="get bounds for" hidden="yes">
<cocoa method=""/>
</responds-to>
<responds-to name="get text for" hidden="yes">
<cocoa method=""/>
</responds-to>
<responds-to name="get index for" hidden="yes">
<cocoa method=""/>
</responds-to>
<responds-to name="get pages for" hidden="yes">
<cocoa method=""/>
</responds-to>
</class>
<class name="character" code="cha "
description="This subdivides the text into characters.">
<cocoa class="NSTextStorage"/>
<type type="text"/>
<property name="color" code="colr" type="RGBA color"
description="The color of the first character.">
<cocoa key="foregroundColor"/>
</property>
<property name="font" code="font" type="text"
description="The name of the font of the first character.">
<cocoa key="fontName"/>
</property>
<property name="size" code="ptsz" type="integer"
description="The size in points of the first character.">
<cocoa key="fontSize"/>
</property>
<property name="RTF" code="RTF " type="RTF"
description="The raw RTF data.">
<cocoa key="scriptingRTF"/>
</property>
<element type="character"/>
<element type="paragraph"/>
<element type="word"/>
<element type="attribute run"/>
<element type="attachment"/>
<responds-to name="join" hidden="yes">
<cocoa method=""/>
</responds-to>
<responds-to name="get bounds for" hidden="yes">
<cocoa method=""/>
</responds-to>
<responds-to name="get text for" hidden="yes">
<cocoa method=""/>
</responds-to>
<responds-to name="get index for" hidden="yes">
<cocoa method=""/>
</responds-to>
<responds-to name="get pages for" hidden="yes">
<cocoa method=""/>
</responds-to>
</class>
<class name="paragraph" code="cpar"
description="This subdivides the text into paragraphs.">
<cocoa class="NSTextStorage"/>
<type type="text"/>
<property name="color" code="colr" type="RGBA color"
description="The color of the first character.">
<cocoa key="foregroundColor"/>
</property>
<property name="font" code="font" type="text"
description="The name of the font of the first character.">
<cocoa key="fontName"/>
</property>
<property name="size" code="ptsz" type="integer"
description="The size in points of the first character.">
<cocoa key="fontSize"/>
</property>
<property name="RTF" code="RTF " type="RTF"
description="The raw RTF data.">
<cocoa key="scriptingRTF"/>
</property>
<element type="character"/>
<element type="paragraph"/>
<element type="word"/>
<element type="attribute run"/>
<element type="attachment"/>
<responds-to name="join" hidden="yes">
<cocoa method=""/>
</responds-to>
<responds-to name="get bounds for" hidden="yes">
<cocoa method=""/>
</responds-to>
<responds-to name="get text for" hidden="yes">
<cocoa method=""/>
</responds-to>
<responds-to name="get index for" hidden="yes">
<cocoa method=""/>
</responds-to>
<responds-to name="get pages for" hidden="yes">
<cocoa method=""/>
</responds-to>
</class>
<class name="word" code="cwor"
description="This subdivides the text into words.">
<cocoa class="NSTextStorage"/>
<type type="text"/>
<property name="color" code="colr" type="RGBA color"
description="The color of the first character.">
<cocoa key="foregroundColor"/>
</property>
<property name="font" code="font" type="text"
description="The name of the font of the first character.">
<cocoa key="fontName"/>
</property>
<property name="size" code="ptsz" type="integer"
description="The size in points of the first character.">
<cocoa key="fontSize"/>
</property>
<property name="RTF" code="RTF " type="RTF"
description="The raw RTF data.">
<cocoa key="scriptingRTF"/>
</property>
<element type="character"/>
<element type="paragraph"/>
<element type="word"/>
<element type="attribute run"/>
<element type="attachment"/>
<responds-to name="join" hidden="yes">
<cocoa method=""/>
</responds-to>
<responds-to name="get bounds for" hidden="yes">
<cocoa method=""/>
</responds-to>
<responds-to name="get text for" hidden="yes">
<cocoa method=""/>
</responds-to>
<responds-to name="get index for" hidden="yes">
<cocoa method=""/>
</responds-to>
<responds-to name="get pages for" hidden="yes">
<cocoa method=""/>
</responds-to>
</class>
<class name="attribute run" code="catr"
description="This subdivides the text into chunks that all have the same attributes.">
<cocoa class="NSTextStorage"/>
<type type="text"/>
<property name="color" code="colr" type="RGBA color"
description="The color of the first character.">
<cocoa key="foregroundColor"/>
</property>
<property name="font" code="font" type="text"
description="The name of the font of the first character.">
<cocoa key="fontName"/>
</property>
<property name="size" code="ptsz" type="integer"
description="The size in points of the first character.">
<cocoa key="fontSize"/>
</property>
<property name="RTF" code="RTF " type="RTF"
description="The raw RTF data.">
<cocoa key="scriptingRTF"/>
</property>
<element type="character"/>
<element type="paragraph"/>
<element type="word"/>
<element type="attribute run"/>
<element type="attachment"/>
<responds-to name="join" hidden="yes">
<cocoa method=""/>
</responds-to>
<responds-to name="get bounds for" hidden="yes">
<cocoa method=""/>
</responds-to>
<responds-to name="get text for" hidden="yes">
<cocoa method=""/>
</responds-to>
<responds-to name="get index for" hidden="yes">
<cocoa method=""/>
</responds-to>
<responds-to name="get pages for" hidden="yes">
<cocoa method=""/>
</responds-to>
</class>
<class name="attachment" code="atts" inherits="rich text"
description="Represents an inline text attachment. This class is used mainly for make commands.">
<cocoa class="NSAttachmentTextStorage"/>
<property name="file name" code="atfn" type="text"
description="The path to the file for the attachment">
<cocoa key="filename"/>
</property>
</class>
<class name="rich text format" plural="rich text formats" code="RTFt" hidden="yes"
description="Rich text format, encoding rich text.">
<cocoa class="SKRichTextFormat"/>
<property name="name" code="pnam" type="text" access="r"
description="The name for the rich text format.">
<cocoa key="name"/>
</property>
<contents name="rich text" code="ricT" type="rich text" access="r"
description="The rich text representation of the rich text format.">
<cocoa key="richText"/>
</contents>
</class>
</suite>
<suite name="Skim Suite" code="SKIM"
description="Skim specific commands and classes for dealing with PDF.">
<cocoa name="SkimSuite"/>
<command name="revert" code="SKIMRvrt"
description="Revert a document. Don't use this when you have turned on the auto-relead functionality.">
<direct-parameter type="specifier"
description="The document(s) or window(s) to revert."/>
</command>
<command name="go" code="SKIMGoTo"
description="Go to a location.">
<direct-parameter type="document"
description="The document in which to scroll."/>
<parameter name="to" code="to "
description="The page, note, TeX line, or selection to go to.">
<type type="page"/>
<type type="note"/>
<type type="TeX line"/>
<type type="specifier" list="yes"/>
<type type="specifier"/>
<cocoa key="To"/>
</parameter>
<parameter name="from" code="from" type="file" optional="yes"
description="The TeX source file. By default this is derived from the file. Only applies for a TeX line.">
<cocoa key="Source"/>
</parameter>
<parameter name="showing reading bar" code="RBar" type="boolean" optional="yes"
description="Whether to move the reading bar instead of selecting. Only applies for a TeX line.">
<cocoa key="ShowReadingBar"/>
</parameter>
</command>
<command name="convert notes" code="SKIMConv"
description="Convert in a document PDF annotations to Skim notes.">
<direct-parameter type="document"
description="The document(s) for which to convert notes."/>
</command>
<command name="read notes" code="SKIMRNot"
description="Read notes from a Skim document and ad them to the PDF document.">
<direct-parameter type="document"
description="The document(s) for which to read notes."/>
<parameter name="from" code="from" type="file"
description="The file from which to read the notes.">
<cocoa key="File"/>
</parameter>
<parameter name="replacing" code="Repl" type="boolean" optional="yes"
description="Whether to replace the currently existing notes. Default is true.">
<cocoa key="Replace"/>
</parameter>
</command>
<command name="find" code="SKIMFind"
description="Find text in a document.">
<direct-parameter type="document"
description="The document in which to search."/>
<parameter name="text" code="ctxt" type="text"
description="The text to search for.">
<cocoa key="Text"/>
</parameter>
<parameter name="from" code="from" optional="yes"
description="The selection to search from.">
<type type="specifier" list="yes"/>
<type type="specifier"/>
<cocoa key="From"/>
</parameter>
<parameter name="backward search" code="Back" type="boolean" optional="yes"
description="Search backward?">
<cocoa key="Backward"/>
</parameter>
<parameter name="case sensitive search" code="casS" type="boolean" optional="yes"
description="Is the search case sensitive?">
<cocoa key="CaseSensitive"/>
</parameter>
<result
description="Selection for the found text as a list of character ranges.">
<type type="specifier" list="yes"/>
</result>
</command>
<command name="join" code="SKIMJoin"
description="Join selection(s).">
<cocoa class="SKJoinCommand"/>
<direct-parameter
description="The selection to add to.">
<type type="specifier" list="yes"/>
<type type="specifier"/>
</direct-parameter>
<parameter name="to" code="to " optional="yes"
description="The selection to add.">
<cocoa key="To"/>
<type type="specifier" list="yes"/>
<type type="specifier"/>
</parameter>
<parameter name="continuous selection" type="boolean" code="conI" optional="yes"
description="Join to a continuous selection?">
<cocoa key="Continuous"/>
</parameter>
<result
description="The joined selection.">
<type type="specifier" list="yes"/>
</result>
</command>
<command name="show TeX file" code="SKIMSTeX"
description="Show the LaTeX source file.">
<direct-parameter type="document"
description="The document to show the TeX source for."/>
<parameter name="from" code="from" type="point" optional="yes"
description="The point from the page to show the TeX line for.">
<cocoa key="Point"/>
</parameter>
<parameter name="at" code="at " type="page" optional="yes"
description="The page to show the TeX line for.">
<cocoa key="Page"/>
</parameter>
</command>
<command name="get bounds for" code="SKIMBnds"
description="Get the bounds of a page, note, or selection.">
<synonym name="bounds for"/>
<cocoa class="SKBoundsCommand"/>
<direct-parameter
description="The document, page, note, or selection.">
<type type="document"/>
<type type="page"/>
<type type="note"/>
<type type="specifier" list="yes"/>
<type type="specifier"/>
</direct-parameter>
<parameter name="on" type="page" code="on " optional="yes"
description="The page on which to get the bounds.">
<cocoa key="Page"/>
</parameter>
<parameter name="for" type="PDF display box" code="for " optional="yes"
description="The display box for which to take the bounds.">
<cocoa key="Box"/>
</parameter>
<result type="rectangle"
description="The bounds of the object."/>
</command>
<command name="get text for" code="SKIMText"
description="Get the text of a document, page, note, selection, or raw RTF data.">
<synonym name="text for"/>
<cocoa class="SKTextCommand"/>
<direct-parameter
description="The document, page, note, selection, or raw RTF data.">
<type type="document"/>
<type type="page"/>
<type type="note"/>
<type type="specifier" list="yes"/>
<type type="specifier"/>
<type type="RTF"/>
</direct-parameter>
<parameter name="on" type="page" code="on " optional="yes"
description="The page on which to get the text.">
<cocoa key="Page"/>
</parameter>
<result type="specifier"
description="The rich text of the object."/>
</command>
<command name="get index for" code="SKIMIndx"
description="Get the index of a document, page, note, or selection.">
<cocoa class="SKIndexCommand"/>
<synonym name="index for"/>
<direct-parameter
description="The document, page, note, or selection.">
<type type="document"/>
<type type="page"/>
<type type="note"/>
<type type="specifier" list="yes"/>
<type type="specifier"/>
</direct-parameter>
<parameter name="on" type="page" code="on " optional="yes"
description="The page on which to get the index.">
<cocoa key="Page"/>
</parameter>
<parameter name="last" type="boolean" code="Last" optional="yes"
description="Gets the index of the last character of a selection.">
<cocoa key="Last"/>
</parameter>
<result type="integer"
description="The index for the object. Returns 0 if no index was found.">
</result>
</command>
<command name="get pages for" code="SKIMPags"
description="Get the pages of a document, page, note, or selection.">
<cocoa class="SKPagesCommand"/>
<synonym name="pages for"/>
<direct-parameter
description="The document, page, note, or selection.">
<type type="document"/>
<type type="page"/>
<type type="note"/>
<type type="specifier" list="yes"/>
<type type="specifier"/>
</direct-parameter>
<result
description="The list of pages for the object.">
<type type="page" list="yes"/>
</result>
</command>
<command name="grab" code="SKIMGrab"
description="Grab a picture from a page.">
<direct-parameter type="page"
description="The page for the picture."/>
<parameter name="for" type="rectangle" code="for " optional="yes"
description="The bounds for the picture.">
<cocoa key="Bounds"/>
</parameter>
<parameter name="TIFF format" type="boolean" code="Tiff" optional="yes" hidden="yes"
description="Whether to return TIFF data. By default returns PDF data.">
<cocoa key="AsTIFF"/>
</parameter>
<parameter name="as" type="type" code="rtyp" optional="yes"
description="The type of data to return. Currently 'PDF' and 'TIFF picture' are supported. Defaults to PDF.">
<cocoa key="Type"/>
</parameter>
<result type="any"
description="The PDF or TIFF data of the picture."/>
</command>
<command name="format" code="SKIMFrmt"
description="Format an object using a template.">
<cocoa class="SKFormatCommand"/>
<direct-parameter
description="The object to format using a template.">
<type type="document"/>
<type type="page"/>
<type type="note"/>
</direct-parameter>
<parameter name="using template" code="Tmpl"
description="The template to use as a file, text, or rich text.">
<type type="file"/>
<type type="text"/>
<type type="rich text"/>
<cocoa key="template"/>
</parameter>
<parameter name="to" type="file" code="to " optional="yes"
description="The file to write the resulting text to.">
<cocoa key="to"/>
</parameter>
<result
description="The text or rich text generated using the template.">
<type type="text"/>
<type type="specifier"/>
</result>
</command>
<class-extension extends="application"
description="Skim's top level scripting object.">
<cocoa class="SKApplication"/>
<element type="bookmark"
description="The top level bookmarks.">
<cocoa key="bookmarks" insert-at-beginning="no"/>
</element>
<element type="TeX line" access="r" hidden="yes"
description="Lines in a TeX source file.">
<cocoa key="lines"/>
</element>
<element type="rich text format" access="r" hidden="yes"
description="Rich text formats.">
<cocoa key="richTextFormat"/>
</element>
<property name="default view settings" type="PDF view settings" code="DVSt"
description="The default PDF view settings for normal mode.">
<cocoa key="defaultPdfViewSettings"/>
</property>
<property name="default full screen view settings" type="PDF view settings" code="DFVS"
description="The default PDF view settings for full screen mode. An empty dictionary indicates that default view settings for normal mode are used.">
<cocoa key="defaultFullScreenPdfViewSettings"/>
</property>
<property name="background color" type="RGBA color" code="NBgC"
description="The default background color in normal mode.">
<cocoa key="backgroundColor"/>
</property>
<property name="full screen background color" type="RGBA color" code="FBgC"
description="The default background color in full screen mode.">
<cocoa key="fullScreenBackgroundColor"/>
</property>
<property name="page background color" type="RGBA color" code="PBgC"
description="The default page background color.">
<cocoa key="pageBackgroundColor"/>
</property>
<property name="default note colors" type="note colors" code="DNtC"
description="The default colors used for new notes.">
<cocoa key="defaultNoteColors"/>
</property>
<property name="default note line widths" type="note line widths" code="DNtW"
description="The default line width used for new notes.">
<cocoa key="defaultLineWidths"/>
</property>
<property name="default note line styles" type="note line styles" code="DNtS"
description="The default line styles used for new notes.">
<cocoa key="defaultLineStyles"/>
</property>
<property name="default note dash patterns" type="note dash patterns" code="DNtD"
description="The default dash patterns used for new notes.">
<cocoa key="defaultDashPatterns"/>
</property>
<property name="default note start line style" type="line ending style" code="DNSL"
description="The default start line style used for new lines.">
<cocoa key="defaultStartLineStyle"/>
</property>
<property name="default note end line style" type="line ending style" code="DNEL"
description="The default end line style used for new lines.">
<cocoa key="defaultEndLineStyle"/>
</property>
<property name="default note font names" type="note font names" code="DNFN"
description="The default font names used for new notes.">
<cocoa key="defaultFontNames"/>
</property>
<property name="default note font sizes" type="note font sizes" code="DNFS"
description="The default font sizes used for new notes.">
<cocoa key="defaultFontSizes"/>
</property>
<property name="default text note font color" type="RGBA color" code="DNFC"
description="The default font color used for new text notes.">
<cocoa key="defaultTextNoteFontColor"/>
</property>
<property name="default text note alignment" type="text alignment" code="DNAl"
description="The default alignment used for new text notes.">
<cocoa key="defaultAlignment"/>
</property>
<property name="default note icon type" type="icon type" code="DNtI"
description="The default icon type used for new anchored notes.">
<cocoa key="defaultIconType"/>
</property>
</class-extension>
<class-extension extends="document"
description="A Skim document.">
<cocoa class="NSDocument"/>
<element type="page" access="r"
description="Pages of the PDF file">
<cocoa key="pages"/>
</element>
<element type="note" access="r"
description="Notes in the PDF file">
<cocoa key="notes"/>
</element>
<element type="TeX line" access="r" hidden="yes"
description="Lines in a TeX source file.">
<cocoa key="lines"/>
</element>
<contents name="text" code="ctxt" type="rich text" access="r"
description="The text of the document.">
<cocoa key="richText"/>
</contents>
<property name="current page" code="CPag" type="page"
description="The current page.">
<cocoa key="currentPage"/>
</property>
<property name="active note" code="ANot" type="note"
description="The currently selected note.">
<cocoa key="activeNote"/>
</property>
<property name="selection" code="sele"
description="The selection of the document.">
<type type="specifier" list="yes"/>
<cocoa key="selectionSpecifier"/>
</property>
<property name="selection bounds" code="SelB" type="rectangle"
description="The bounds of the selection from the selection tool of the document (left, top, right, bottom).">
<cocoa key="selectionQDRect"/>
</property>
<property name="selection page" code="SelP" type="page"
description="The page for the selection from the selection tool of the document.">
<cocoa key="selectionPage"/>
</property>
<property name="view settings" type="PDF view settings" code="vSet"
description="The PDF view settings.">
<cocoa key="pdfViewSettings"/>
</property>
<property name="info" type="document attributes" code="DInf" access="r"
description="The attributes of the PDF document.">
<cocoa key="documentAttributes"/>
</property>
<property name="containing PDF" type="boolean" code="iPDF" access="r"
description="Is this a PDF document?">
<cocoa key="isPDFDocument"/>
</property>
<responds-to name="revert">
<cocoa method="handleRevertScriptCommand:"/>
</responds-to>
<responds-to name="go">
<cocoa method="handleGoToScriptCommand:"/>
</responds-to>
<responds-to name="convert notes">
<cocoa method="handleConvertNotesScriptCommand:"/>
</responds-to>
<responds-to name="read notes">
<cocoa method="handleReadNotesScriptCommand:"/>
</responds-to>
<responds-to name="find">
<cocoa method="handleFindScriptCommand:"/>
</responds-to>
<responds-to name="show TeX file">
<cocoa method="handleShowTeXScriptCommand:"/>
</responds-to>
<responds-to name="get bounds for">
<cocoa method=""/>
</responds-to>
<responds-to name="get text for">
<cocoa method=""/>
</responds-to>
<responds-to name="get index for">
<cocoa method=""/>
</responds-to>
<responds-to name="get pages for">
<cocoa method=""/>
</responds-to>
<responds-to name="format">
<cocoa method=""/>
</responds-to>
</class-extension>
<class-extension extends="window"
description="A window.">
<cocoa class="NSWindow"/>
<element type="TeX line" access="r" hidden="yes"
description="Lines in a TeX source file.">
<cocoa key="lines"/>
</element>
<responds-to name="revert">
<cocoa method="handleRevertScriptCommand:"/>
</responds-to>
</class-extension>
<class name="page" plural="pages" code="Page"
description="A page.">
<cocoa class="PDFPage"/>
<element type="note"
description="Notes in the page">
<cocoa key="notes" insert-at-beginning="no"/>
</element>
<element type="TeX line" access="r" hidden="yes"
description="Lines in a TeX source file.">
<cocoa key="lines"/>
</element>
<contents name="text" code="ctxt" type="rich text" access="r"
description="The text of the page.">
<cocoa key="richText"/>
</contents>
<property name="index" code="pidx" type="integer" access="r"
description="The index of the page.">
<cocoa key="index"/>
</property>
<property name="label" code="labB" type="text" access="r"
description="The label of the page.">
<cocoa key="label"/>
</property>
<property name="bounds" code="pbnd" type="rectangle"
description="The bounding rectangle for the crop box of the page (left, top, right, bottom).">
<cocoa key="boundsAsQDRect"/>
</property>
<property name="media bounds" code="MBnd" type="rectangle"
description="The bounding rectangle for the media box of the page (left, top, right, bottom).">
<cocoa key="mediaBoundsAsQDRect"/>
</property>
<property name="content bounds" code="FBnd" type="rectangle" access="r"
description="The bounding rectangle for the foreground of the page (left, top, right, bottom).">
<cocoa key="contentBoundsAsQDRect"/>
</property>
<property name="line bounds" code="LBnd" access="r"
description="The bounding rectangles for the lines on the page (left, top, right, bottom).">
<type type="rectangle" list="yes"/>
<cocoa key="lineBoundsAsQDRects"/>
</property>
<property name="rotation" code="trot" type="integer"
description="The rotation of the page. Must be one of 0, 90, 180, or 270.">
<cocoa key="rotationAngle"/>
</property>
<responds-to name="get bounds for">