'''jas8522''' fixed the spacing before in Smooth Operator which was broken in [22241...
[adiumx.git] / Resources / Adium.sdef
blobeae7fb347c991c89aff30cd3e36368d7a69dc223
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE dictionary SYSTEM "file://localhost/System/Library/DTDs/sdef.dtd">
3 <dictionary title="Adium Terminology">
4 <suite name="Adium Suite" code="Adum" description="AppleScript support for Adium">
5 <value-type name="TIFF picture" code="TIFF">
6 <cocoa class="NSData"/>
7 </value-type>
8 <class name="application" code="capp" description="Adium's application class">
9 <cocoa class="AIApplication" />
10 <property name="name" code="pnam" type="text" access="r" description="The name of the application."/>
11 <property name="frontmost" code="pisf" type="boolean" access="r" description="Is this the frontmost (active) application?">
12 <cocoa key="isActive"/>
13 </property>
14 <property name="version" code="vers" type="text" access="r" description="The version of the application."/>
15 <property name="active chat" code="Pcht" type="chat" access="r" description="The frontmost chat."/>
17 <property name="global status" code="Pgst" type="status" access="rw" description="The global status. This is the status that the most online accounts are currently using; it will only be an offline status if no accounts are online. Setting it changes the status for all accounts.">
18 <cocoa key="globalStatus"/>
19 </property>
21 <element type="account" />
22 <element type="contact" />
23 <element type="service" />
24 <element type="window">
25 <cocoa key="orderedWindows" />
26 </element>
27 <element type="chat window" />
28 <element type="chat" />
29 <element type="status" />
31 <responds-to name="go online">
32 <cocoa method="scriptingGoOnline:"/>
33 </responds-to>
34 <responds-to name="go available">
35 <cocoa method="scriptingGoAvailable:"/>
36 </responds-to>
37 <responds-to name="go offline">
38 <cocoa method="scriptingGoOffline:"/>
39 </responds-to>
40 <responds-to name="go away">
41 <cocoa method="scriptingGoAway:"/>
42 </responds-to>
43 <responds-to name="go invisible">
44 <cocoa method="scriptingGoInvisible:"/>
45 </responds-to>
46 </class>
47 <class name="service" code="Csrv" description="An Adium service (a.k.a. chat protocol)">
48 <cocoa class="AIService" />
49 <property name="name" code="pnam" type="text" access="r" description="The name of the service.">
50 <cocoa key="serviceID" />
51 </property>
52 <property name="image" code="Pimg" type="TIFF picture" access="r" description="The image associated with this service." />
53 <element type="account" />
54 </class>
55 <class name="window" code="cwin" description="A window in Adium">
56 <cocoa class="NSWindow" />
57 <property name="name" code="pnam" type="text" access="r" description="The title of this window">
58 <cocoa key="scriptingTitle" />
59 </property>
60 <property name="id" code="ID " type="integer" access="r" description="The unique identifier of the window.">
61 <cocoa key="uniqueID"/>
62 </property>
63 <property name="index" code="pidx" type="integer" description="The index of the window, ordered front to back.">
64 <cocoa key="orderedIndex"/>
65 </property>
66 <property name="bounds" code="pbnd" type="rectangle" description="The bounding rectangle of the window.">
67 <cocoa key="boundsAsQDRect"/>
68 </property>
69 <property name="closeable" code="hclb" type="boolean" access="r" description="Whether the window has a close box.">
70 <cocoa key="hasCloseBox"/>
71 </property>
72 <property name="minimizable" code="ismn" type="boolean" access="r" description="Whether the window can be minimized.">
73 <cocoa key="isMiniaturizable"/>
74 </property>
75 <property name="minimized" code="pmnd" type="boolean" description="Whether the window is currently minimized.">
76 <cocoa key="isMiniaturized"/>
77 </property>
78 <property name="resizable" code="prsz" type="boolean" access="r" description="Whether the window can be resized.">
79 <cocoa key="isResizable"/>
80 </property>
81 <property name="visible" code="pvis" type="boolean" description="Whether the window is currently visible.">
82 <cocoa key="isVisible"/>
83 </property>
84 <property name="zoomable" code="iszm" type="boolean" access="r" description="Whether the window can be zoomed.">
85 <cocoa key="isZoomable"/>
86 </property>
87 <property name="zoomed" code="pzum" type="boolean" description="Whether the window is currently zoomed.">
88 <cocoa key="isZoomed"/>
89 </property>
90 </class>
91 <class name="chat window" code="Ctwn" description="A window that contains chats" inherits="window">
92 <cocoa class="AIMessageWindow" />
93 <element type="chat" />
94 <responds-to name="close">
95 <cocoa method="handleCloseScriptCommand:"/>
96 </responds-to>
97 </class>
98 <class name="chat" code="Chat" description="A chat in Adium">
99 <cocoa class="AIChat" />
100 <property name="name" code="pnam" type="text" access="r" description="The name of the chat" />
101 <property name="ID" code="ID " type="text" access="r" description="The unique identifier of the chat.">
102 <cocoa key="uniqueChatID"/>
103 </property>
104 <property name="account" code="Cact" type="account" access="r" description="The account associated with this chat">
105 <cocoa key="scriptingAccount" />
106 </property>
107 <property name="date opened" code="CDop" type="date" access="r" description="The date ad time at which this chat was opened">
108 <cocoa key="dateOpened" />
109 </property>
111 <property name="index" code="pidx" type="integer" access="r" description="The index of this tab in the chat window" />
112 <property name="window" code="cwin" type="window" access="r" description="The window this chat is in" />
113 <element type="contact">
114 <cocoa key="containedObjects" />
115 </element>
117 <responds-to name="close">
118 <cocoa method="handleCloseScriptCommand:"/>
119 </responds-to>
120 <responds-to name="send">
121 <cocoa method="sendScriptCommand:"/>
122 </responds-to>
123 </class>
124 <enumeration name="status types" code="Esta">
125 <enumerator name="offline" code="Soff" description="Account is offline."/>
126 <enumerator name="available" code="Sonl" description="Account is online."/>
127 <enumerator name="away" code="Sawy" description="Account is away."/>
128 <enumerator name="invisible" code="Sinv" description="Account is invisible."/>
129 </enumeration>
130 <class name="account" code="Cact" description="An account in Adium">
131 <cocoa class="AIAccount" />
132 <property name="id" code="ID " type="integer" access="r" description="The unique ID associated with this account">
133 <cocoa key="scriptingInternalObjectID" />
134 </property>
135 <property name="name" code="pnam" type="text" access="r" description="The name of this account">
136 <cocoa key="scriptingUID" />
137 </property>
138 <property name="display name" code="Pdnm" type="text" access="rw" description="The display name of this account"/>
139 <property name="service" code="Csrv" type="service" access="r" description="The service this account is registered under" />
140 <property name="enabled" code="Penb" type="boolean" access="r" description="Whether or not this account is enabled" />
141 <property name="host" code="Phst" type="text" access="r" description="The host this account is connected to" />
142 <property name="port" code="Pprt" type="integer" access="r" description="The port this account is connected to" />
143 <property name="status" code="Csts" type="status" access="rw" description="The current status on the account.">
144 <cocoa key="statusState" />
145 </property>
146 <property name="status type" code="Psts" type="status types" access="rw" description="The type of the current status. Setting this creates a temporary status.">
147 <cocoa key="scriptingStatusType" />
148 </property>
149 <property name="status message" code="Pasm" type="rich text" access="rw" description="The message associated with the current status. Setting this creates a temporary status.">
150 <cocoa key="scriptingStatusMessage" />
151 </property>
152 <property name="image" code="Pimg" type="TIFF picture" access="rw" description="The image associated with this account.">
153 <cocoa key="userIconData" />
154 </property>
155 <element type="contact" />
157 <responds-to name="go online">
158 <cocoa method="scriptingGoOnline:"/>
159 </responds-to>
160 <responds-to name="go available">
161 <cocoa method="scriptingGoAvailable:"/>
162 </responds-to>
163 <responds-to name="go offline">
164 <cocoa method="scriptingGoOffline:"/>
165 </responds-to>
166 <responds-to name="go away">
167 <cocoa method="scriptingGoAway:"/>
168 </responds-to>
169 <responds-to name="go invisible">
170 <cocoa method="scriptingGoInvisible:"/>
171 </responds-to>
172 </class>
173 <class name="contact" code="Ccnt" description="A contact">
174 <cocoa class="AIListContact" />
175 <property name="account" code="Pacc" type="account" access="r" description="The account associated with this contact" />
176 <property name="name" code="pnam" type="text" access="r" description="The name of this contact">
177 <cocoa key="UID" />
178 </property>
179 <property name="display name" code="Pdnm" type="text" access="rw" description="The display name or alias associated with this contact." />
180 <property name="notes" code="Pnts" type="text" access="rw" description="The user-defined notes for this contact."/>
181 <property name="idle time" code="Pidl" type="integer" access="r" description="The time this contact has been idle." />
182 <property name="status type" code="Psts" type="status types" access="r" description="The current status of this contact">
183 <cocoa key="scriptingStatusType" />
184 </property>
185 <property name="status message" code="Pstm" type="rich text" access="r" description="The custom status message for this contact.">
186 <cocoa key="scriptingStatusMessage" />
187 </property>
188 <property name="image" code="Pimg" type="TIFF picture" access="rw" description="The image associated with this contact.">
189 <cocoa key="userIconData" />
190 </property>
191 </class>
192 <class name="status" plural="statuses" code="Csts" description="A saved status in Adium">
193 <cocoa class="AIStatus" />
194 <property name="title" code="pnam" type="text" access="r" description="The title of the status.">
195 <cocoa key="scriptingTitle" />
196 </property>
197 <property name="status type" code="Psts" type="status types" access="r" description="The type of this status.">
198 <cocoa key="statusTypeApplescript"/>
199 </property>
200 <property name="message" code="Pstm" type="rich text" access="r" description="The custom status message.">
201 <cocoa key="scriptingMessage"/>
202 </property>
203 <property name="autoreply" code="Paut" type="rich text" access="r" description="The message to auto reply">
204 <cocoa key="scriptingAutoreply"/>
205 </property>
206 <property name="id" code="ID " type="integer" access="r" description="The unique ID of the status">
207 <cocoa key="uniqueStatusID"/>
208 </property>
209 </class>
210 <command name="close" code="coreclos" description="Close a document.">
211 <cocoa class="NSCloseCommand"/>
212 <direct-parameter type="specifier" description="the document(s) or window(s) to close."/>
213 </command>
215 <command name="go online" code="Adumgoon" description="Changes the status of an account.">
216 <cocoa class="NSScriptCommand" />
217 <direct-parameter description="The account that should connect" type="account" />
218 <parameter name="with message" code="Pmsg" description="The custom status message." type="text" optional="yes">
219 <cocoa key="WithMessage"/>
220 </parameter>
221 </command>
222 <command name="go available" code="Adumgoav" description="Changes the status of an account.">
223 <cocoa class="NSScriptCommand" />
224 <direct-parameter description="The account that should become available" type="account" />
225 <parameter name="with message" code="Pmsg" description="The custom status message." type="text" optional="yes">
226 <cocoa key="WithMessage"/>
227 </parameter>
228 </command>
229 <command name="go offline" code="Adumgoof" description="Changes the status of an account.">
230 <cocoa class="NSScriptCommand" />
231 <direct-parameter description="The account that should disconnect" type="account" />
232 <parameter name="with message" code="Pmsg" description="The custom status message." type="text" optional="yes">
233 <cocoa key="WithMessage"/>
234 </parameter>
235 </command>
236 <command name="go away" code="Adumgoaw" description="Changes the status of an account.">
237 <cocoa class="NSScriptCommand" />
238 <direct-parameter description="The account that should go away" type="account" />
239 <parameter name="with message" code="Pmsg" description="The custom status message." type="text" optional="yes">
240 <cocoa key="WithMessage"/>
241 </parameter>
242 </command>
243 <command name="go invisible" code="Adumgoin" description="Changes the status of an account.">
244 <cocoa class="NSScriptCommand" />
245 <direct-parameter description="The account that should become invisible" type="account" />
246 </command>
247 <command name="count" code="corecnte" description="Return the number elements of a particular class within an object.">
248 <cocoa class="NSCountCommand"/>
249 <direct-parameter description="the object whose elements are to be counted" type="specifier"/>
250 <parameter name="each" code="kocl" description="The class of objects to be counted." type="type" optional="yes">
251 <cocoa key="ObjectClass"/>
252 </parameter>
253 <result description="the number of elements" type="integer"/>
254 </command>
255 <command name="delete" code="coredelo" description="Delete an object.">
256 <cocoa class="NSDeleteCommand"/>
257 <direct-parameter description="the object to delete" type="specifier"/>
258 </command>
259 <command name="exists" code="coredoex" description="Verify if an object exists.">
260 <cocoa class="NSExistsCommand"/>
261 <direct-parameter description="the object in question" type="specifier"/>
262 <result description="true if it exists, false if not" type="boolean"/>
263 </command>
264 <command name="make" code="corecrel" description="Make a new object.">
265 <cocoa class="AICreateCommand"/>
266 <parameter name="new" code="kocl" description="The class of the new object." type="type">
267 <cocoa key="ObjectClass"/>
268 </parameter>
269 <parameter name="at" code="insh" description="The location at which to insert the object." type="location specifier" optional="yes">
270 <cocoa key="Location"/>
271 </parameter>
272 <parameter name="with data" code="data" description="The initial data for the object." type="any" optional="yes">
273 <cocoa key="ObjectData"/>
274 </parameter>
275 <parameter name="with properties" code="prdt" description="The initial values for properties of the object." type="record" optional="yes">
276 <cocoa key="KeyDictionary"/>
277 </parameter>
278 <parameter name="with contacts" code="Pwct" description="The contacts needed for creating a chat or group." type="list of contact" optional="yes">
279 <cocoa key="withContacts"/>
280 </parameter>
281 <parameter name="new chat window" code="Pncw" description="If this is true, then a new chat window will be created when creating a chat." type="boolean" optional="yes">
282 <cocoa key="newChatWindow"/>
283 </parameter>
284 <result description="to the new object" type="specifier"/>
285 </command>
287 <command name="move" code="coremove" description="Move object(s) to a new location.">
288 <cocoa class="AIMoveCommand"/>
289 <direct-parameter type="specifier" description="the object(s) to move"/>
290 <parameter name="to" code="insh" type="location specifier" description="The new location for the object(s).">
291 <cocoa key="ToLocation"/>
292 </parameter>
293 <result type="specifier" description="the moved object(s)"/>
294 </command>
296 <command name="send" code="Adumsend" description="Send text or a file to some contact.">
297 <cocoa class="NSScriptCommand"/>
298 <direct-parameter type="chat" description="The chat that mimics the entry... yada yada"/>
299 <parameter name="message" code="Smsg" description="The message to send" type="text" optional="yes">
300 <cocoa key="message"/>
301 </parameter>
302 <parameter name="with file" code="Sfil" description="A file to attach" type="file" optional="yes">
303 <cocoa key="withFile"/>
304 </parameter>
305 </command>
306 </suite>
308 <suite name="Text Suite" code="TEXT" description="A set of basic classes for text processing.">
309 <cocoa name="NSTextSuite"/>
311 <value-type name="color" code="cRGB">
312 <cocoa class="NSColor"/>
313 </value-type>
315 <class name="rich text" plural="rich text" code="ctxt" description="Rich (styled) text">
316 <cocoa class="NSTextStorage"/>
317 <!-- this "type" element and the ones that follow, while they
318 contradict the DTD, are NOT errors. Cocoa Scripting in 10.4 uses them to accomplish certain type conversions. -->
319 <type type="text"/>
320 <property name="color" code="colr" type="color" description="The color of the first character.">
321 <cocoa key="foregroundColor"/>
322 </property>
323 <property name="font" code="font" type="text" description="The name of the font of the first character.">
324 <cocoa key="fontName"/>
325 </property>
326 <property name="size" code="ptsz" type="integer" description="The size in points of the first character.">
327 <cocoa key="fontSize"/>
328 </property>
329 <element type="character"/>
330 <element type="paragraph"/>
331 <element type="word"/>
332 <element type="attribute run"/>
333 <element type="attachment"/>
334 </class>
336 <class name="character" code="cha " description="This subdivides the text into characters.">
337 <cocoa class="NSTextStorage"/>
338 <type type="text"/>
339 <property name="color" code="colr" type="color" description="The color of the first character.">
340 <cocoa key="foregroundColor"/>
341 </property>
342 <property name="font" code="font" type="text" description="The name of the font of the first character.">
343 <cocoa key="fontName"/>
344 </property>
345 <property name="size" code="ptsz" type="integer" description="The size in points of the first character.">
346 <cocoa key="fontSize"/>
347 </property>
348 <element type="character"/>
349 <element type="paragraph"/>
350 <element type="word"/>
351 <element type="attribute run"/>
352 <element type="attachment"/>
353 </class>
355 <class name="paragraph" code="cpar" description="This subdivides the text into paragraphs.">
356 <cocoa class="NSTextStorage"/>
357 <type type="text"/>
358 <property name="color" code="colr" type="color" description="The color of the first character.">
359 <cocoa key="foregroundColor"/>
360 </property>
361 <property name="font" code="font" type="text" description="The name of the font of the first character.">
362 <cocoa key="fontName"/>
363 </property>
364 <property name="size" code="ptsz" type="integer" description="The size in points of the first character.">
365 <cocoa key="fontSize"/>
366 </property>
367 <element type="character"/>
368 <element type="paragraph"/>
369 <element type="word"/>
370 <element type="attribute run"/>
371 <element type="attachment"/>
372 </class>
374 <class name="word" code="cwor" description="This subdivides the text into words.">
375 <cocoa class="NSTextStorage"/>
376 <type type="text"/>
377 <property name="color" code="colr" type="color" description="The color of the first character.">
378 <cocoa key="foregroundColor"/>
379 </property>
380 <property name="font" code="font" type="text" description="The name of the font of the first character.">
381 <cocoa key="fontName"/>
382 </property>
383 <property name="size" code="ptsz" type="integer" description="The size in points of the first character.">
384 <cocoa key="fontSize"/>
385 </property>
386 <element type="character"/>
387 <element type="paragraph"/>
388 <element type="word"/>
389 <element type="attribute run"/>
390 <element type="attachment"/>
391 </class>
393 <class name="attribute run" code="catr" description="This subdivides the text into chunks that all have the same attributes.">
394 <cocoa class="NSTextStorage"/>
395 <type type="text"/>
396 <property name="color" code="colr" type="color" description="The color of the first character.">
397 <cocoa key="foregroundColor"/>
398 </property>
399 <property name="font" code="font" type="text" description="The name of the font of the first character.">
400 <cocoa key="fontName"/>
401 </property>
402 <property name="size" code="ptsz" type="integer" description="The size in points of the first character.">
403 <cocoa key="fontSize"/>
404 </property>
405 <element type="character"/>
406 <element type="paragraph"/>
407 <element type="word"/>
408 <element type="attribute run"/>
409 <element type="attachment"/>
410 </class>
412 <class name="attachment" code="atts" inherits="rich text" description="Represents an inline text attachment. This class is used mainly for make commands.">
413 <cocoa class="NSAttachmentTextStorage"/>
414 <property name="file name" code="atfn" type="text" description="The path to the file for the attachment">
415 <cocoa key="filename"/>
416 </property>
417 </class>
419 </suite>
421 </dictionary>