forked from SublerApp/Subler
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSubler.sdef
More file actions
201 lines (169 loc) · 10.7 KB
/
Subler.sdef
File metadata and controls
201 lines (169 loc) · 10.7 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dictionary SYSTEM "file:///localhost/System/Library/DTDs/sdef.dtd">
<dictionary title="Subler Terminology" xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="file:///System/Library/ScriptingDefinitions/CocoaStandard.sdef" xpointer="xpointer(/dictionary/suite)" />
<class-extension extends="application" description="Queue's top level scripting object.">
<element type="queue item" access="r" description="The queue items">
<cocoa key="queueItems"/>
</element>
</class-extension>
<suite name="Subler Automation Suite" code="Subl" description="Automation functions for Subler.">
<!-- Commands -->
<!-- File Commands -->
<command name="import file" code="SublFilI" description="Import a file into the active document.">
<cocoa class="SBImportFileScriptCommand" />
<direct-parameter description="The file to import.">
<type type="file" />
</direct-parameter>
<parameter name="into" code="into" type="document" optional="yes" description="The target document to import into." />
</command>
<command name="save as" code="SublSave" description="Save the active document to a file.">
<cocoa class="SBSaveAsScriptCommand" />
<direct-parameter description="The destination file path.">
<type type="file" />
</direct-parameter>
<parameter name="doc" code="docu" type="document" optional="yes" description="The target document to save." />
</command>
<command name="send to queue" code="SublSenQ" description="Send the active document to the queue.">
<cocoa class="SBSendToQueueScriptCommand" />
<direct-parameter description="The destination file path.">
<type type="file" />
</direct-parameter>
<parameter name="doc" code="docu" type="document" optional="yes" description="The target document to send to queue." />
</command>
<command name="close document" code="SublClos" description="Close the active document window without prompting for unsaved changes.">
<cocoa class="SBCloseFileScriptCommand" />
<parameter name="doc" code="docu" type="document" optional="yes" description="The target document to close." />
</command>
<!-- Metadata Commands -->
<command name="fetch metadata" code="SublMeta" description="Fetch metadata for the active document.">
<cocoa class="SBFetchMetadataScriptCommand" />
<parameter name="into" code="into" type="document" optional="yes" description="The target document to fetch metadata for." />
</command>
<command name="fetch metadata candidates" code="SublFRes" description="Fetch metadata results without applying them.">
<cocoa class="SBFetchMetadataResultsScriptCommand" />
<parameter name="into" code="into" type="document" optional="yes" description="The target document to fetch metadata candidates for." />
<parameter name="limit" code="limt" type="integer" optional="yes" description="Maximum number of results to return." />
<parameter name="provider" code="prov" type="text" optional="yes" description="Metadata provider to use (Apple TV, TheMovieDB, TheTVDB, iTunes Store)." />
<parameter name="language" code="lang" type="text" optional="yes" description="Language for metadata search (e.g., 'en', 'es', 'fr')." />
<result description="The metadata results.">
<type type="text" list="yes"/>
</result>
</command>
<command name="fetch and set metadata candidate" code="SublSetM" description="Fetch metadata and set the specified result.">
<cocoa class="SBFetchAndSetMetadataResultScriptCommand" />
<direct-parameter description="The result index to set (1-based).">
<type type="integer" />
</direct-parameter>
<parameter name="into" code="into" type="document" optional="yes" description="The target document to set metadata for." />
<parameter name="provider" code="prov" type="text" optional="yes" description="Metadata provider to use (Apple TV, TheMovieDB, TheTVDB, iTunes Store)." />
<parameter name="language" code="lang" type="text" optional="yes" description="Language for metadata search (e.g., 'en', 'es', 'fr')." />
</command>
<!-- Edit Commands -->
<command name="organize alternate groups" code="SublOrgG" description="Organize alternate audio groups.">
<cocoa class="SBOrganizeAlternateGroupsScriptCommand" />
<parameter name="into" code="into" type="document" optional="yes" description="The target document to organize alternate groups for." />
</command>
<command name="clear track names" code="SublClea" description="Clear all track names.">
<cocoa class="SBClearTrackNamesScriptCommand" />
<parameter name="into" code="into" type="document" optional="yes" description="The target document to clear track names for." />
</command>
<command name="prettify audio track names" code="SublPret" description="Prettify audio track names.">
<cocoa class="SBPrettifyAudioTrackNamesScriptCommand" />
<parameter name="into" code="into" type="document" optional="yes" description="The target document to prettify audio track names for." />
</command>
<command name="fix audio fallbacks" code="SublFixF" description="Fix audio fallback settings.">
<cocoa class="SBFixAudioFallbacksScriptCommand" />
<parameter name="into" code="into" type="document" optional="yes" description="The target document to fix audio fallbacks for." />
</command>
<!-- Queue Commands -->
<command name="add to queue" code="SublQAdd" description="Add a file to queue.">
<cocoa class="SBQueueScriptCommand"/>
<direct-parameter description="The file(s) to be added.">
<type type="file" list="yes"/>
</direct-parameter>
</command>
<command name="start queue and wait" code="SublQStw" description="Start the queue and wait until its completion.">
<cocoa class="SBQueueStartAndWaitScriptCommand"/>
</command>
<command name="start queue" code="SublQSta" description="Start the queue.">
<cocoa class="SBQueueStartScriptCommand"/>
</command>
<command name="stop queue" code="SublQSto" description="Stop the queue.">
<cocoa class="SBQueueStopScriptCommand"/>
</command>
<command name="remove completed items from queue" code="SublQRem" description="Remove all completed items from the queue.">
<cocoa class="SBQueueRemoveCompletedScriptCommand"/>
</command>
<command name="get queue status" code="SublQSts" description="Get the current status of the queue.">
<cocoa class="SBQueueStatusScriptCommand"/>
<result description="The status of the queue.">
<type type="queue status"/>
</result>
</command>
<!-- Queue Enumerations -->
<enumeration name="queue status" code="QSts" description="The status of the queue.">
<enumerator name="idle" code="QIDL" description="Queue is idle.">
<cocoa integer-value="0"/>
</enumerator>
<enumerator name="running" code="QRUN" description="Queue is running.">
<cocoa integer-value="1"/>
</enumerator>
<enumerator name="completed" code="QCOM" description="Queue has completed.">
<cocoa integer-value="2"/>
</enumerator>
</enumeration>
<enumeration name="queue item status" code="QISt" description="A status">
<enumerator name="ready" code="STA1" description="Ready status.">
<cocoa integer-value="0"/>
</enumerator>
<enumerator name="editing" code="STA2" description="Editing status.">
<cocoa integer-value="1"/>
</enumerator>
<enumerator name="working" code="STA3" description="Working status.">
<cocoa integer-value="2"/>
</enumerator>
<enumerator name="completed" code="STA4" description="Completed status.">
<cocoa integer-value="3"/>
</enumerator>
<enumerator name="failed" code="STA5" description="Failed status.">
<cocoa integer-value="4"/>
</enumerator>
<enumerator name="cancelled" code="STA6" description="Cancelled status.">
<cocoa integer-value="5"/>
</enumerator>
</enumeration>
<!-- Queue Classes -->
<class name="document" code="docu" description="A Subler document" plural="documents">
<cocoa class="Document"/>
<property name="id" code="ID " type="integer" access="r" description="The unique identifier of the document.">
<cocoa key="uniqueID"/>
</property>
<property name="name" code="pnam" type="text" access="r" description="The name of the document.">
<cocoa key="displayName"/>
</property>
<property name="modified" code="imod" type="boolean" access="r" description="Whether the document has been modified.">
<cocoa key="isDocumentEdited"/>
</property>
<property name="file" code="file" type="file" access="r" description="The file associated with the document.">
<cocoa key="fileURL"/>
</property>
</class>
<class name="queue item" code="QIte" description="A queue item" inherits="item" plural="queue items">
<cocoa class="SBQueueItem"/>
<property name="id" code="ID " type="text" access="r" description="The unique identifier of the queue item.">
<cocoa key="uniqueID"/>
</property>
<property name="status" code="StAt" type="queue item status" access="r" description="The status of the queue item.">
</property>
<property name="name" code="pnam" type="text" access="r" description="The name of the queue item.">
</property>
<property name="sourcePath" code="SOUR" type="text" access="r" description="The source URL of the queue item.">
<cocoa key="sourcePath"/>
</property>
<property name="destinationPath" code="DEST" type="text" access="r" description="The destination URL of the queue item.">
<cocoa key="destinationPath"/>
</property>
</class>
</suite>
</dictionary>