root/tags/2C10/Resources/ChatPlugIn.scriptSuite

Revision 1802, 15.1 kB (checked in by timothy, 4 years ago)

Huge changes. Plugins are affected if they process incoming and outgoing messages and commands. AppleScript? plugins are still compatiable. ObjC plugins will need to support the new methods. This was done to simplify our plugin API (less methods).
* Plugins are now passed a mutable JVChatMessage (JVMutableChatMessage). They are free to modify anything in this message when their turn comes.
* There is only one processUserCommand method now, plugins are responsiable for determining the context with the passed view.
* AppleScripts? don't have to worry about HTML when processing incoming or outgoing messages, they can set attributes on the mutable message they get passed. (See the iTunes script.)
* AppleScripts? still use HTML to send messages if they want to include formatting.
* Other fixes...

Line 
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3 <plist version="1.0">
4 <dict>
5         <key>AppleEventCode</key>
6         <string>cplG</string>
7         <key>Commands</key>
8         <dict>
9                 <key>performNotification</key>
10                 <dict>
11                         <key>AppleEventClassCode</key>
12                         <string>cplG</string>
13                         <key>AppleEventCode</key>
14                         <string>nOtX</string>
15                         <key>UnnamedArgument</key>
16                         <dict>
17                                 <key>Optional</key>
18                                 <string>NO</string>
19                                 <key>Type</key>
20                                 <string>NSString</string>
21                         </dict>
22                         <key>Arguments</key>
23                         <dict>
24                                 <key>context</key>
25                                 <dict>
26                                         <key>AppleEventCode</key>
27                                         <string>nOt1</string>
28                                         <key>Optional</key>
29                                         <string>NO</string>
30                                         <key>Type</key>
31                                         <string>NSDictionary</string>
32                                 </dict>
33                                 <key>preferences</key>
34                                 <dict>
35                                         <key>AppleEventCode</key>
36                                         <string>nOt2</string>
37                                         <key>Optional</key>
38                                         <string>NO</string>
39                                         <key>Type</key>
40                                         <string>NSDictionary</string>
41                                 </dict>
42                         </dict>
43                         <key>CommandClass</key>
44                         <string>NSScriptCommand</string>
45                 </dict>
46                 <key>processUserCommand</key>
47                 <dict>
48                         <key>AppleEventClassCode</key>
49                         <string>cplG</string>
50                         <key>AppleEventCode</key>
51                         <string>pcCX</string>
52                         <key>UnnamedArgument</key>
53                         <dict>
54                                 <key>Optional</key>
55                                 <string>NO</string>
56                                 <key>Type</key>
57                                 <string>NSString</string>
58                         </dict>
59                         <key>Arguments</key>
60                         <dict>
61                                 <key>arguments</key>
62                                 <dict>
63                                         <key>AppleEventCode</key>
64                                         <string>pcC1</string>
65                                         <key>Optional</key>
66                                         <string>NO</string>
67                                         <key>Type</key>
68                                         <string>NSString</string>
69                                 </dict>
70                                 <key>view</key>
71                                 <dict>
72                                         <key>AppleEventCode</key>
73                                         <string>pcC2</string>
74                                         <key>Optional</key>
75                                         <string>NO</string>
76                                         <key>Type</key>
77                                         <string>Colloquy.AbstractChatViewController</string>
78                                 </dict>
79                         </dict>
80                         <key>CommandClass</key>
81                         <string>NSScriptCommand</string>
82                         <key>ResultAppleEventCode</key>
83                         <string>bool</string>
84                         <key>Type</key>
85                         <string>NSNumber&lt;Bool&gt;</string>
86                 </dict>
87                 <key>processSubcodeRequest</key>
88                 <dict>
89                         <key>AppleEventClassCode</key>
90                         <string>cplG</string>
91                         <key>AppleEventCode</key>
92                         <string>psRX</string>
93                         <key>UnnamedArgument</key>
94                         <dict>
95                                 <key>Optional</key>
96                                 <string>NO</string>
97                                 <key>Type</key>
98                                 <string>NSString</string>
99                         </dict>
100                         <key>Arguments</key>
101                         <dict>
102                                 <key>arguments</key>
103                                 <dict>
104                                         <key>AppleEventCode</key>
105                                         <string>psR1</string>
106                                         <key>Optional</key>
107                                         <string>NO</string>
108                                         <key>Type</key>
109                                         <string>NSString</string>
110                                 </dict>
111                                 <key>user</key>
112                                 <dict>
113                                         <key>AppleEventCode</key>
114                                         <string>psR2</string>
115                                         <key>Optional</key>
116                                         <string>NO</string>
117                                         <key>Type</key>
118                                         <string>NSString</string>
119                                 </dict>
120                                 <key>connection</key>
121                                 <dict>
122                                         <key>AppleEventCode</key>
123                                         <string>psR3</string>
124                                         <key>Optional</key>
125                                         <string>NO</string>
126                                         <key>Type</key>
127                                         <string>MVChatConnection</string>
128                                 </dict>
129                         </dict>
130                         <key>CommandClass</key>
131                         <string>NSScriptCommand</string>
132                         <key>ResultAppleEventCode</key>
133                         <string>bool</string>
134                         <key>Type</key>
135                         <string>NSNumber&lt;Bool&gt;</string>
136                 </dict>
137                 <key>processSubcodeReply</key>
138                 <dict>
139                         <key>AppleEventClassCode</key>
140                         <string>cplG</string>
141                         <key>AppleEventCode</key>
142                         <string>psLX</string>
143                         <key>UnnamedArgument</key>
144                         <dict>
145                                 <key>Optional</key>
146                                 <string>NO</string>
147                                 <key>Type</key>
148                                 <string>NSString</string>
149                         </dict>
150                         <key>Arguments</key>
151                         <dict>
152                                 <key>arguments</key>
153                                 <dict>
154                                         <key>AppleEventCode</key>
155                                         <string>psL1</string>
156                                         <key>Optional</key>
157                                         <string>NO</string>
158                                         <key>Type</key>
159                                         <string>NSString</string>
160                                 </dict>
161                                 <key>user</key>
162                                 <dict>
163                                         <key>AppleEventCode</key>
164                                         <string>psL2</string>
165                                         <key>Optional</key>
166                                         <string>NO</string>
167                                         <key>Type</key>
168                                         <string>NSString</string>
169                                 </dict>
170                                 <key>connection</key>
171                                 <dict>
172                                         <key>AppleEventCode</key>
173                                         <string>psL3</string>
174                                         <key>Optional</key>
175                                         <string>NO</string>
176                                         <key>Type</key>
177                                         <string>MVChatConnection</string>
178                                 </dict>
179                         </dict>
180                         <key>CommandClass</key>
181                         <string>NSScriptCommand</string>
182                         <key>ResultAppleEventCode</key>
183                         <string>bool</string>
184                         <key>Type</key>
185                         <string>NSNumber&lt;Bool&gt;</string>
186                 </dict>
187                 <key>processIncomingChatMessage</key>
188                 <dict>
189                         <key>AppleEventClassCode</key>
190                         <string>cplG</string>
191                         <key>AppleEventCode</key>
192                         <string>piMX</string>
193                         <key>UnnamedArgument</key>
194                         <dict>
195                                 <key>Optional</key>
196                                 <string>NO</string>
197                                 <key>Type</key>
198                                 <string>JVChatMessage</string>
199                         </dict>
200                         <key>Arguments</key>
201                         <dict>
202                                 <key>action</key>
203                                 <dict>
204                                         <key>AppleEventCode</key>
205                                         <string>piM1</string>
206                                         <key>Optional</key>
207                                         <string>YES</string>
208                                         <key>Type</key>
209                                         <string>NSNumber&lt;Bool&gt;</string>
210                                 </dict>
211                                 <key>user</key>
212                                 <dict>
213                                         <key>AppleEventCode</key>
214                                         <string>piM2</string>
215                                         <key>Optional</key>
216                                         <string>YES</string>
217                                         <key>Type</key>
218                                         <string>NSString</string>
219                                 </dict>
220                                 <key>view</key>
221                                 <dict>
222                                         <key>AppleEventCode</key>
223                                         <string>piM3</string>
224                                         <key>Optional</key>
225                                         <string>YES</string>
226                                         <key>Type</key>
227                                         <string>Colloquy.AbstractChatViewController</string>
228                                 </dict>
229                         </dict>
230                         <key>CommandClass</key>
231                         <string>NSScriptCommand</string>
232                 </dict>
233                 <key>processOutgoingChatMessage</key>
234                 <dict>
235                         <key>AppleEventClassCode</key>
236                         <string>cplG</string>
237                         <key>AppleEventCode</key>
238                         <string>poMX</string>
239                         <key>UnnamedArgument</key>
240                         <dict>
241                                 <key>Optional</key>
242                                 <string>NO</string>
243                                 <key>Type</key>
244                                 <string>JVChatMessage</string>
245                         </dict>
246                         <key>Arguments</key>
247                         <dict>
248                                 <key>action</key>
249                                 <dict>
250                                         <key>AppleEventCode</key>
251                                         <string>poM1</string>
252                                         <key>Optional</key>
253                                         <string>YES</string>
254                                         <key>Type</key>
255                                         <string>NSNumber&lt;Bool&gt;</string>
256                                 </dict>
257                                 <key>view</key>
258                                 <dict>
259                                         <key>AppleEventCode</key>
260                                         <string>poM2</string>
261                                         <key>Optional</key>
262                                         <string>YES</string>
263                                         <key>Type</key>
264                                         <string>Colloquy.AbstractChatViewController</string>
265                                 </dict>
266                         </dict>
267                         <key>CommandClass</key>
268                         <string>NSScriptCommand</string>
269                 </dict>
270                 <key>handleClickedLink</key>
271                 <dict>
272                         <key>AppleEventClassCode</key>
273                         <string>cplG</string>
274                         <key>AppleEventCode</key>
275                         <string>hClX</string>
276                         <key>UnnamedArgument</key>
277                         <dict>
278                                 <key>Optional</key>
279                                 <string>NO</string>
280                                 <key>Type</key>
281                                 <string>NSString</string>
282                         </dict>
283                         <key>Arguments</key>
284                         <dict>
285                                 <key>view</key>
286                                 <dict>
287                                         <key>AppleEventCode</key>
288                                         <string>hCl1</string>
289                                         <key>Optional</key>
290                                         <string>NO</string>
291                                         <key>Type</key>
292                                         <string>Colloquy.AbstractChatViewController</string>
293                                 </dict>
294                         </dict>
295                         <key>CommandClass</key>
296                         <string>NSScriptCommand</string>
297                         <key>ResultAppleEventCode</key>
298                         <string>bool</string>
299                         <key>Type</key>
300                         <string>NSNumber&lt;Bool&gt;</string>
301                 </dict>
302                 <key>joinedRoom</key>
303                 <dict>
304                         <key>AppleEventClassCode</key>
305                         <string>cplG</string>
306                         <key>AppleEventCode</key>
307                         <string>jRmX</string>
308                         <key>UnnamedArgument</key>
309                         <dict>
310                                 <key>Optional</key>
311                                 <string>NO</string>
312                                 <key>Type</key>
313                                 <string>Colloquy.JVChatRoom</string>
314                         </dict>
315                         <key>CommandClass</key>
316                         <string>NSScriptCommand</string>
317                 </dict>
318                 <key>partingRoom</key>
319                 <dict>
320                         <key>AppleEventClassCode</key>
321                         <string>cplG</string>
322                         <key>AppleEventCode</key>
323                         <string>pRmX</string>
324                         <key>UnnamedArgument</key>
325                         <dict>
326                                 <key>Optional</key>
327                                 <string>NO</string>
328                                 <key>Type</key>
329                                 <string>Colloquy.JVChatRoom</string>
330                         </dict>
331                         <key>CommandClass</key>
332                         <string>NSScriptCommand</string>
333                 </dict>
334                 <key>kickedFromRoom</key>
335                 <dict>
336                         <key>AppleEventClassCode</key>
337                         <string>cplG</string>
338                         <key>AppleEventCode</key>
339                         <string>kRmX</string>
340                         <key>UnnamedArgument</key>
341                         <dict>
342                                 <key>Optional</key>
343                                 <string>NO</string>
344                                 <key>Type</key>
345                                 <string>Colloquy.JVChatRoom</string>
346                         </dict>
347                         <key>Arguments</key>
348                         <dict>
349                                 <key>by</key>
350                                 <dict>
351                                         <key>AppleEventCode</key>
352                                         <string>kRm1</string>
353                                         <key>Optional</key>
354                                         <string>NO</string>
355                                         <key>Type</key>
356                                         <string>Colloquy.JVChatRoomMember</string>
357                                 </dict>
358                                 <key>reason</key>
359                                 <dict>
360                                         <key>AppleEventCode</key>
361                                         <string>kRm2</string>
362                                         <key>Optional</key>
363                                         <string>NO</string>
364                                         <key>Type</key>
365                                         <string>NSString</string>
366                                 </dict>
367                         </dict>
368                         <key>CommandClass</key>
369                         <string>NSScriptCommand</string>
370                 </dict>
371                 <key>connected</key>
372                 <dict>
373                         <key>AppleEventClassCode</key>
374                         <string>cplG</string>
375                         <key>AppleEventCode</key>
376                         <string>cTsX</string>
377                         <key>UnnamedArgument</key>
378                         <dict>
379                                 <key>Optional</key>
380                                 <string>NO</string>
381                                 <key>Type</key>
382                                 <string>ChatCore.MVChatConnection</string>
383                         </dict>
384                         <key>CommandClass</key>
385                         <string>NSScriptCommand</string>
386                 </dict>
387                 <key>disconnecting</key>
388                 <dict>
389                         <key>AppleEventClassCode</key>
390                         <string>cplG</string>
391                         <key>AppleEventCode</key>
392                         <string>dFsX</string>
393                         <key>UnnamedArgument</key>
394                         <dict>
395                                 <key>Optional</key>
396                                 <string>NO</string>
397                                 <key>Type</key>
398                                 <string>ChatCore.MVChatConnection</string>
399                         </dict>
400                         <key>CommandClass</key>
401                         <string>NSScriptCommand</string>
402                 </dict>
403                 <key>memberJoinedRoom</key>
404                 <dict>
405                         <key>AppleEventClassCode</key>
406                         <string>cplG</string>
407                         <key>AppleEventCode</key>
408                         <string>mJrX</string>
409                         <key>UnnamedArgument</key>
410                         <dict>
411                                 <key>Optional</key>
412                                 <string>NO</string>
413                                 <key>Type</key>
414                                 <string>Colloquy.JVChatRoomMember</string>
415                         </dict>
416                         <key>Arguments</key>
417                         <dict>
418                                 <key>room</key>
419                                 <dict>
420                                         <key>AppleEventCode</key>
421                                         <string>mJr1</string>
422                                         <key>Optional</key>
423                                         <string>NO</string>
424                                         <key>Type</key>
425                                         <string>Colloquy.JVChatRoom</string>
426                                 </dict>
427                         </dict>
428                         <key>CommandClass</key>
429                         <string>NSScriptCommand</string>
430                 </dict>
431                 <key>memberPartedRoom</key>
432                 <dict>
433                         <key>AppleEventClassCode</key>
434                         <string>cplG</string>
435                         <key>AppleEventCode</key>
436                         <string>mPrX</string>
437                         <key>UnnamedArgument</key>
438                         <dict>
439                                 <key>Optional</key>
440                                 <string>NO</string>
441                                 <key>Type</key>
442                                 <string>Colloquy.JVChatRoomMember</string>
443                         </dict>
444                         <key>Arguments</key>
445                         <dict>
446                                 <key>room</key>
447                                 <dict>
448                                         <key>AppleEventCode</key>
449                                         <string>mPr1</string>
450                                         <key>Optional</key>
451                                         <string>NO</string>
452                                         <key>Type</key>
453                                         <string>Colloquy.JVChatRoom</string>
454                                 </dict>
455                                 <key>reason</key>
456                                 <dict>
457                                         <key>AppleEventCode</key>
458                                         <string>mPr2</string>
459                                         <key>Optional</key>
460                                         <string>NO</string>
461                                         <key>Type</key>
462                                         <string>NSString</string>
463                                 </dict>
464                         </dict>
465                         <key>CommandClass</key>
466                         <string>NSScriptCommand</string>
467                 </dict>
468                 <key>memberKickedFromRoom</key>
469                 <dict>
470                         <key>AppleEventClassCode</key>
471                         <string>cplG</string>
472                         <key>AppleEventCode</key>
473                         <string>mKrX</string>
474                         <key>UnnamedArgument</key>
475                         <dict>
476                                 <key>Optional</key>
477                                 <string>NO</string>
478                                 <key>Type</key>
479                                 <string>Colloquy.JVChatRoomMember</string>
480                         </dict>
481                         <key>Arguments</key>
482                         <dict>
483                                 <key>room</key>
484                                 <dict>
485                                         <key>AppleEventCode</key>
486                                         <string>mKr1</string>
487                                         <key>Optional</key>
488                                         <string>NO</string>
489                                         <key>Type</key>
490                                         <string>Colloquy.JVChatRoom</string>
491                                 </dict>
492                                 <key>by</key>
493                                 <dict>
494                                         <key>AppleEventCode</key>
495                                         <string>mKr2</string>
496                                         <key>Optional</key>
497                                         <string>NO</string>
498                                         <key>Type</key>
499                                         <string>Colloquy.JVChatRoomMember</string>
500                                 </dict>
501                                 <key>reason</key>
502                                 <dict>
503                                         <key>AppleEventCode</key>
504                                         <string>mKr3</string>
505                                         <key>Optional</key>
506                                         <string>NO</string>
507                                         <key>Type</key>
508                                         <string>NSString</string>
509                                 </dict>
510                         </dict>
511                         <key>CommandClass</key>
512                         <string>NSScriptCommand</string>
513                 </dict>
514                 <key>memberStatusChanged</key>
515                 <dict>
516                         <key>AppleEventClassCode</key>
517                         <string>cplG</string>
518                         <key>AppleEventCode</key>
519                         <string>mScX</string>
520                         <key>UnnamedArgument</key>
521                         <dict>
522                                 <key>Optional</key>
523                                 <string>NO</string>
524                                 <key>Type</key>
525                                 <string>Colloquy.JVChatRoomMember</string>
526                         </dict>
527                         <key>Arguments</key>
528                         <dict>
529                                 <key>status</key>
530                                 <dict>
531                                         <key>AppleEventCode</key>
532                                         <string>mSc1</string>
533                                         <key>Optional</key>
534                                         <string>NO</string>
535                                         <key>Type</key>
536                                         <string>NSNumber&lt;MemberStatus&gt;</string>
537                                 </dict>
538                                 <key>by</key>
539                                 <dict>
540                                         <key>AppleEventCode</key>
541                                         <string>mSc2</string>
542                                         <key>Optional</key>
543                                         <string>NO</string>
544                                         <key>Type</key>
545                                         <string>Colloquy.JVChatRoomMember</string>
546                                 </dict>
547                                 <key>room</key>
548                                 <dict>
549                                         <key>AppleEventCode</key>
550                                         <string>mSc3</string>
551                                         <key>Optional</key>
552                                         <string>NO</string>
553                                         <key>Type</key>
554                                         <string>Colloquy.JVChatRoom</string>
555                                 </dict>
556                         </dict>
557                         <key>CommandClass</key>
558                         <string>NSScriptCommand</string>
559                 </dict>
560                 <key>topicChanged</key>
561                 <dict>
562                         <key>AppleEventClassCode</key>
563                         <string>cplG</string>
564                         <key>AppleEventCode</key>
565                         <string>rTcX</string>
566                         <key>Arguments</key>
567                         <dict>
568                                 <key>topic</key>
569                                 <dict>
570                                         <key>AppleEventCode</key>
571                                         <string>rTc1</string>
572                                         <key>Optional</key>
573                                         <string>NO</string>
574                                         <key>Type</key>
575                                         <string>NSString</string>
576                                 </dict>
577                                 <key>by</key>
578                                 <dict>
579                                         <key>AppleEventCode</key>
580                                         <string>rTc2</string>
581                                         <key>Optional</key>
582                                         <string>NO</string>
583                                         <key>Type</key>
584                                         <string>Colloquy.JVChatRoomMember</string>
585                                 </dict>
586                                 <key>room</key>
587                                 <dict>
588                                         <key>AppleEventCode</key>
589                                         <string>rTc3</string>
590                                         <key>Optional</key>
591                                         <string>NO</string>
592                                         <key>Type</key>
593                                         <string>Colloquy.JVChatRoom</string>
594                                 </dict>
595                         </dict>
596                         <key>CommandClass</key>
597                         <string>NSScriptCommand</string>
598                 </dict>
599                 <key>userNicknameChanged</key>
600                 <dict>
601                         <key>AppleEventClassCode</key>
602                         <string>cplG</string>
603                         <key>AppleEventCode</key>
604                         <string>uNcX</string>
605                         <key>UnnamedArgument</key>
606                         <dict>
607                                 <key>Optional</key>
608                                 <string>NO</string>
609                                 <key>Type</key>
610                                 <string>NSString</string>
611                         </dict>
612                         <key>Arguments</key>
613                         <dict>
614                                 <key>now</key>
615                                 <dict>
616                                         <key>AppleEventCode</key>
617                                         <string>uNc1</string>
618                                         <key>Optional</key>
619                                         <string>NO</string>
620                                         <key>Type</key>
621                                         <string>NSString</string>
622                                 </dict>
623                                 <key>view</key>
624                                 <dict>
625                                         <key>AppleEventCode</key>
626                                         <string>uNc2</string>
627                                         <key>Optional</key>
628                                         <string>NO</string>
629                                         <key>Type</key>
630                                         <string>Colloquy.AbstractChatViewController</string>
631                                 </dict>
632                         </dict>
633                         <key>CommandClass</key>
634                         <string>NSScriptCommand</string>
635                 </dict>
636         </dict>
637         <key>Enumerations</key>
638         <dict>
639                 <key>MemberStatus</key>
640                 <dict>
641                         <key>AppleEventCode</key>