1 """Suite AppleScript Suite: Standard terms for AppleScript
4 Generated from Macintosh HD:Systeemmap:Extensies:AppleScript
5 AETE/AEUT resource version 1/0, language 0, script 0
13 class AppleScript_Suite_Events
:
15 def activate(self
, _no_object
=None, _attributes
={}, **_arguments
):
16 """activate: Bring the targeted application program to the front
17 Keyword argument _attributes: AppleEvent attribute dictionary
22 if _arguments
: raise TypeError, 'No optional args expected'
23 if _no_object
!= None: raise TypeError, 'No direct arg expected'
26 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
27 _arguments
, _attributes
)
28 if _arguments
.has_key('errn'):
29 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
30 # XXXX Optionally decode result
31 if _arguments
.has_key('----'):
32 return _arguments
['----']
34 def log(self
, _object
, _attributes
={}, **_arguments
):
35 """log: Cause a comment to be logged
36 Required argument: undocumented, typecode 'TEXT'
37 Keyword argument _attributes: AppleEvent attribute dictionary
42 if _arguments
: raise TypeError, 'No optional args expected'
43 _arguments
['----'] = _object
46 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
47 _arguments
, _attributes
)
48 if _arguments
.has_key('errn'):
49 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
50 # XXXX Optionally decode result
51 if _arguments
.has_key('----'):
52 return _arguments
['----']
54 def stop_log(self
, _no_object
=None, _attributes
={}, **_arguments
):
55 """stop log: Stop event logging in the script editor
56 Keyword argument _attributes: AppleEvent attribute dictionary
61 if _arguments
: raise TypeError, 'No optional args expected'
62 if _no_object
!= None: raise TypeError, 'No direct arg expected'
65 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
66 _arguments
, _attributes
)
67 if _arguments
.has_key('errn'):
68 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
69 # XXXX Optionally decode result
70 if _arguments
.has_key('----'):
71 return _arguments
['----']
73 def start_log(self
, _no_object
=None, _attributes
={}, **_arguments
):
74 """start log: Start event logging in the script editor
75 Keyword argument _attributes: AppleEvent attribute dictionary
80 if _arguments
: raise TypeError, 'No optional args expected'
81 if _no_object
!= None: raise TypeError, 'No direct arg expected'
84 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
85 _arguments
, _attributes
)
86 if _arguments
.has_key('errn'):
87 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
88 # XXXX Optionally decode result
89 if _arguments
.has_key('----'):
90 return _arguments
['----']
92 def idle(self
, _no_object
=None, _attributes
={}, **_arguments
):
93 """idle: Sent to a script application when it is idle
94 Keyword argument _attributes: AppleEvent attribute dictionary
95 Returns: the number of seconds to wait for next idle event
100 if _arguments
: raise TypeError, 'No optional args expected'
101 if _no_object
!= None: raise TypeError, 'No direct arg expected'
104 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
105 _arguments
, _attributes
)
106 if _arguments
.has_key('errn'):
107 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
108 # XXXX Optionally decode result
109 if _arguments
.has_key('----'):
110 return _arguments
['----']
112 def launch(self
, _no_object
=None, _attributes
={}, **_arguments
):
113 """launch: Start an application for scripting
114 Keyword argument _attributes: AppleEvent attribute dictionary
119 if _arguments
: raise TypeError, 'No optional args expected'
120 if _no_object
!= None: raise TypeError, 'No direct arg expected'
123 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
124 _arguments
, _attributes
)
125 if _arguments
.has_key('errn'):
126 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
127 # XXXX Optionally decode result
128 if _arguments
.has_key('----'):
129 return _arguments
['----']
131 def tell(self
, _no_object
=None, _attributes
={}, **_arguments
):
132 """tell: Record or log a •tellÕ statement
133 Keyword argument _attributes: AppleEvent attribute dictionary
138 if _arguments
: raise TypeError, 'No optional args expected'
139 if _no_object
!= None: raise TypeError, 'No direct arg expected'
142 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
143 _arguments
, _attributes
)
144 if _arguments
.has_key('errn'):
145 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
146 # XXXX Optionally decode result
147 if _arguments
.has_key('----'):
148 return _arguments
['----']
150 def end_tell(self
, _no_object
=None, _attributes
={}, **_arguments
):
151 """end tell: Record or log an •end tellÕ statement
152 Keyword argument _attributes: AppleEvent attribute dictionary
157 if _arguments
: raise TypeError, 'No optional args expected'
158 if _no_object
!= None: raise TypeError, 'No direct arg expected'
161 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
162 _arguments
, _attributes
)
163 if _arguments
.has_key('errn'):
164 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
165 # XXXX Optionally decode result
166 if _arguments
.has_key('----'):
167 return _arguments
['----']
171 'partial_result' : 'ptlr',
176 def error(self
, _object
=None, _attributes
={}, **_arguments
):
177 """error: Raise an error
178 Required argument: anything
179 Keyword argument number: an error number
180 Keyword argument partial_result: any partial result occurring before the error
181 Keyword argument _from: the object that caused the error
182 Keyword argument to: the desired class for a failed coercion
183 Keyword argument _attributes: AppleEvent attribute dictionary
188 aetools
.keysubst(_arguments
, self
._argmap
_error
)
189 _arguments
['----'] = _object
192 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
193 _arguments
, _attributes
)
194 if _arguments
.has_key('errn'):
195 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
196 # XXXX Optionally decode result
197 if _arguments
.has_key('----'):
198 return _arguments
['----']
200 _argmap_Call_a5_subroutine
= {
214 'instead_of' : 'isto',
215 'aside_from' : 'asdf',
223 'apart_from' : 'aprt',
231 def Call_a5_subroutine(self
, _object
=None, _attributes
={}, **_arguments
):
232 """Call‚subroutine: A subroutine call
233 Required argument: anything
234 Keyword argument at: a preposition
235 Keyword argument _from: a preposition
236 Keyword argument _for: a preposition
237 Keyword argument to: a preposition
238 Keyword argument thru: a preposition
239 Keyword argument through: a preposition
240 Keyword argument by: a preposition
241 Keyword argument on: a preposition
242 Keyword argument into: a preposition
243 Keyword argument onto: a preposition
244 Keyword argument between: a preposition
245 Keyword argument against: a preposition
246 Keyword argument out_of: a preposition
247 Keyword argument instead_of: a preposition
248 Keyword argument aside_from: a preposition
249 Keyword argument around: a preposition
250 Keyword argument beside: a preposition
251 Keyword argument beneath: a preposition
252 Keyword argument under: a preposition
253 Keyword argument over: a preposition
254 Keyword argument above: a preposition
255 Keyword argument below: a preposition
256 Keyword argument apart_from: a preposition
257 Keyword argument about: a preposition
258 Keyword argument since: a preposition
259 Keyword argument given: parameter:value pairs, comma-separated
260 Keyword argument with: formal parameter set to true if matching actual parameter is provided
261 Keyword argument without: formal parameter set to false if matching actual parmeter is provided
262 Keyword argument _attributes: AppleEvent attribute dictionary
268 aetools
.keysubst(_arguments
, self
._argmap
_Call
_a
5_subroutine
)
269 _arguments
['----'] = _object
272 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
273 _arguments
, _attributes
)
274 if _arguments
.has_key('errn'):
275 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
276 # XXXX Optionally decode result
277 if _arguments
.has_key('----'):
278 return _arguments
['----']
280 def _3d_(self
, _object
, _attributes
={}, **_arguments
):
282 Required argument: an AE object reference
283 Keyword argument _attributes: AppleEvent attribute dictionary
289 if _arguments
: raise TypeError, 'No optional args expected'
290 _arguments
['----'] = _object
293 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
294 _arguments
, _attributes
)
295 if _arguments
.has_key('errn'):
296 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
297 # XXXX Optionally decode result
298 if _arguments
.has_key('----'):
299 return _arguments
['----']
301 def _ad_(self
, _object
, _attributes
={}, **_arguments
):
303 Required argument: an AE object reference
304 Keyword argument _attributes: AppleEvent attribute dictionary
310 if _arguments
: raise TypeError, 'No optional args expected'
311 _arguments
['----'] = _object
314 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
315 _arguments
, _attributes
)
316 if _arguments
.has_key('errn'):
317 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
318 # XXXX Optionally decode result
319 if _arguments
.has_key('----'):
320 return _arguments
['----']
322 def _2b_(self
, _object
, _attributes
={}, **_arguments
):
324 Required argument: an AE object reference
325 Keyword argument _attributes: AppleEvent attribute dictionary
331 if _arguments
: raise TypeError, 'No optional args expected'
332 _arguments
['----'] = _object
335 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
336 _arguments
, _attributes
)
337 if _arguments
.has_key('errn'):
338 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
339 # XXXX Optionally decode result
340 if _arguments
.has_key('----'):
341 return _arguments
['----']
343 def _2d_(self
, _object
, _attributes
={}, **_arguments
):
345 Required argument: an AE object reference
346 Keyword argument _attributes: AppleEvent attribute dictionary
352 if _arguments
: raise TypeError, 'No optional args expected'
353 _arguments
['----'] = _object
356 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
357 _arguments
, _attributes
)
358 if _arguments
.has_key('errn'):
359 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
360 # XXXX Optionally decode result
361 if _arguments
.has_key('----'):
362 return _arguments
['----']
364 def _2a_(self
, _object
, _attributes
={}, **_arguments
):
366 Required argument: an AE object reference
367 Keyword argument _attributes: AppleEvent attribute dictionary
373 if _arguments
: raise TypeError, 'No optional args expected'
374 _arguments
['----'] = _object
377 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
378 _arguments
, _attributes
)
379 if _arguments
.has_key('errn'):
380 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
381 # XXXX Optionally decode result
382 if _arguments
.has_key('----'):
383 return _arguments
['----']
385 def _d6_(self
, _object
, _attributes
={}, **_arguments
):
387 Required argument: an AE object reference
388 Keyword argument _attributes: AppleEvent attribute dictionary
394 if _arguments
: raise TypeError, 'No optional args expected'
395 _arguments
['----'] = _object
398 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
399 _arguments
, _attributes
)
400 if _arguments
.has_key('errn'):
401 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
402 # XXXX Optionally decode result
403 if _arguments
.has_key('----'):
404 return _arguments
['----']
406 def div(self
, _object
, _attributes
={}, **_arguments
):
408 Required argument: an AE object reference
409 Keyword argument _attributes: AppleEvent attribute dictionary
415 if _arguments
: raise TypeError, 'No optional args expected'
416 _arguments
['----'] = _object
419 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
420 _arguments
, _attributes
)
421 if _arguments
.has_key('errn'):
422 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
423 # XXXX Optionally decode result
424 if _arguments
.has_key('----'):
425 return _arguments
['----']
427 def mod(self
, _object
, _attributes
={}, **_arguments
):
429 Required argument: an AE object reference
430 Keyword argument _attributes: AppleEvent attribute dictionary
436 if _arguments
: raise TypeError, 'No optional args expected'
437 _arguments
['----'] = _object
440 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
441 _arguments
, _attributes
)
442 if _arguments
.has_key('errn'):
443 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
444 # XXXX Optionally decode result
445 if _arguments
.has_key('----'):
446 return _arguments
['----']
448 def _5e_(self
, _object
, _attributes
={}, **_arguments
):
450 Required argument: an AE object reference
451 Keyword argument _attributes: AppleEvent attribute dictionary
457 if _arguments
: raise TypeError, 'No optional args expected'
458 _arguments
['----'] = _object
461 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
462 _arguments
, _attributes
)
463 if _arguments
.has_key('errn'):
464 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
465 # XXXX Optionally decode result
466 if _arguments
.has_key('----'):
467 return _arguments
['----']
469 def _3e_(self
, _object
, _attributes
={}, **_arguments
):
471 Required argument: an AE object reference
472 Keyword argument _attributes: AppleEvent attribute dictionary
478 if _arguments
: raise TypeError, 'No optional args expected'
479 _arguments
['----'] = _object
482 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
483 _arguments
, _attributes
)
484 if _arguments
.has_key('errn'):
485 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
486 # XXXX Optionally decode result
487 if _arguments
.has_key('----'):
488 return _arguments
['----']
490 def _b3_(self
, _object
, _attributes
={}, **_arguments
):
491 """³: Greater than or equal to
492 Required argument: an AE object reference
493 Keyword argument _attributes: AppleEvent attribute dictionary
499 if _arguments
: raise TypeError, 'No optional args expected'
500 _arguments
['----'] = _object
503 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
504 _arguments
, _attributes
)
505 if _arguments
.has_key('errn'):
506 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
507 # XXXX Optionally decode result
508 if _arguments
.has_key('----'):
509 return _arguments
['----']
511 def _3c_(self
, _object
, _attributes
={}, **_arguments
):
513 Required argument: an AE object reference
514 Keyword argument _attributes: AppleEvent attribute dictionary
520 if _arguments
: raise TypeError, 'No optional args expected'
521 _arguments
['----'] = _object
524 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
525 _arguments
, _attributes
)
526 if _arguments
.has_key('errn'):
527 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
528 # XXXX Optionally decode result
529 if _arguments
.has_key('----'):
530 return _arguments
['----']
532 def _b2_(self
, _object
, _attributes
={}, **_arguments
):
533 """²: Less than or equal to
534 Required argument: an AE object reference
535 Keyword argument _attributes: AppleEvent attribute dictionary
541 if _arguments
: raise TypeError, 'No optional args expected'
542 _arguments
['----'] = _object
545 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
546 _arguments
, _attributes
)
547 if _arguments
.has_key('errn'):
548 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
549 # XXXX Optionally decode result
550 if _arguments
.has_key('----'):
551 return _arguments
['----']
553 def _26_(self
, _object
, _attributes
={}, **_arguments
):
555 Required argument: an AE object reference
556 Keyword argument _attributes: AppleEvent attribute dictionary
562 if _arguments
: raise TypeError, 'No optional args expected'
563 _arguments
['----'] = _object
566 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
567 _arguments
, _attributes
)
568 if _arguments
.has_key('errn'):
569 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
570 # XXXX Optionally decode result
571 if _arguments
.has_key('----'):
572 return _arguments
['----']
574 def starts_with(self
, _object
, _attributes
={}, **_arguments
):
575 """starts with: Starts with
576 Required argument: an AE object reference
577 Keyword argument _attributes: AppleEvent attribute dictionary
583 if _arguments
: raise TypeError, 'No optional args expected'
584 _arguments
['----'] = _object
587 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
588 _arguments
, _attributes
)
589 if _arguments
.has_key('errn'):
590 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
591 # XXXX Optionally decode result
592 if _arguments
.has_key('----'):
593 return _arguments
['----']
595 def ends_with(self
, _object
, _attributes
={}, **_arguments
):
596 """ends with: Ends with
597 Required argument: an AE object reference
598 Keyword argument _attributes: AppleEvent attribute dictionary
604 if _arguments
: raise TypeError, 'No optional args expected'
605 _arguments
['----'] = _object
608 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
609 _arguments
, _attributes
)
610 if _arguments
.has_key('errn'):
611 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
612 # XXXX Optionally decode result
613 if _arguments
.has_key('----'):
614 return _arguments
['----']
616 def contains(self
, _object
, _attributes
={}, **_arguments
):
617 """contains: Containment
618 Required argument: an AE object reference
619 Keyword argument _attributes: AppleEvent attribute dictionary
625 if _arguments
: raise TypeError, 'No optional args expected'
626 _arguments
['----'] = _object
629 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
630 _arguments
, _attributes
)
631 if _arguments
.has_key('errn'):
632 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
633 # XXXX Optionally decode result
634 if _arguments
.has_key('----'):
635 return _arguments
['----']
637 def _and(self
, _object
, _attributes
={}, **_arguments
):
638 """and: Logical conjunction
639 Required argument: an AE object reference
640 Keyword argument _attributes: AppleEvent attribute dictionary
646 if _arguments
: raise TypeError, 'No optional args expected'
647 _arguments
['----'] = _object
650 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
651 _arguments
, _attributes
)
652 if _arguments
.has_key('errn'):
653 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
654 # XXXX Optionally decode result
655 if _arguments
.has_key('----'):
656 return _arguments
['----']
658 def _or(self
, _object
, _attributes
={}, **_arguments
):
659 """or: Logical disjunction
660 Required argument: an AE object reference
661 Keyword argument _attributes: AppleEvent attribute dictionary
667 if _arguments
: raise TypeError, 'No optional args expected'
668 _arguments
['----'] = _object
671 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
672 _arguments
, _attributes
)
673 if _arguments
.has_key('errn'):
674 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
675 # XXXX Optionally decode result
676 if _arguments
.has_key('----'):
677 return _arguments
['----']
679 def as(self
, _object
, _attributes
={}, **_arguments
):
681 Required argument: an AE object reference
682 Keyword argument _attributes: AppleEvent attribute dictionary
688 if _arguments
: raise TypeError, 'No optional args expected'
689 _arguments
['----'] = _object
692 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
693 _arguments
, _attributes
)
694 if _arguments
.has_key('errn'):
695 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
696 # XXXX Optionally decode result
697 if _arguments
.has_key('----'):
698 return _arguments
['----']
700 def _not(self
, _object
, _attributes
={}, **_arguments
):
701 """not: Logical negation
702 Required argument: an AE object reference
703 Keyword argument _attributes: AppleEvent attribute dictionary
709 if _arguments
: raise TypeError, 'No optional args expected'
710 _arguments
['----'] = _object
713 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
714 _arguments
, _attributes
)
715 if _arguments
.has_key('errn'):
716 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
717 # XXXX Optionally decode result
718 if _arguments
.has_key('----'):
719 return _arguments
['----']
721 def negate(self
, _object
, _attributes
={}, **_arguments
):
722 """negate: Numeric negation
723 Required argument: an AE object reference
724 Keyword argument _attributes: AppleEvent attribute dictionary
730 if _arguments
: raise TypeError, 'No optional args expected'
731 _arguments
['----'] = _object
734 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
735 _arguments
, _attributes
)
736 if _arguments
.has_key('errn'):
737 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
738 # XXXX Optionally decode result
739 if _arguments
.has_key('----'):
740 return _arguments
['----']
743 class boolean(aetools
.ComponentItem
):
744 """boolean - A true or false value """
749 class integer(aetools
.ComponentItem
):
750 """integer - An integral number """
755 class real(aetools
.ComponentItem
):
756 """real - A real number """
761 class number(aetools
.ComponentItem
):
762 """number - an integer or real number """
767 class list(aetools
.ComponentItem
):
768 """list - An ordered collection of items """
770 class length(aetools
.NProperty
):
771 """length - the length of a list """
774 class reverse(aetools
.NProperty
):
775 """reverse - the items of the list in reverse order """
778 class rest(aetools
.NProperty
):
779 """rest - all items of the list excluding first """
785 class linked_list(aetools
.ComponentItem
):
786 """linked list - An ordered collection of items """
788 # repeated property length the length of a list
790 linked_lists
= linked_list
792 class vector(aetools
.ComponentItem
):
793 """vector - An ordered collection of items """
795 # repeated property length the length of a list
799 class record(aetools
.ComponentItem
):
800 """record - A set of labeled items """
805 class item(aetools
.ComponentItem
):
806 """item - An item of any type """
808 class id(aetools
.NProperty
):
809 """id - the unique ID number of this object """
815 class script(aetools
.ComponentItem
):
816 """script - An AppleScript script """
818 class name(aetools
.NProperty
):
819 """name - the name of the script """
822 class parent(aetools
.NProperty
):
823 """parent - its parent, i.e. the script that will handle events that this script doesnÕt """
829 class list_or_record(aetools
.ComponentItem
):
830 """list or record - a list or record """
833 class list_or_string(aetools
.ComponentItem
):
834 """list or string - a list or string """
837 class number_or_string(aetools
.ComponentItem
):
838 """number or string - a number or string """
841 class alias_or_string(aetools
.ComponentItem
):
842 """alias or string - an alias or string """
845 class list_2c__record_or_text(aetools
.ComponentItem
):
846 """list, record or text - a list, record or text """
849 class number_or_date(aetools
.ComponentItem
):
850 """number or date - a number or date """
853 class number_2c__date_or_text(aetools
.ComponentItem
):
854 """number, date or text - a number, date or text """
857 class _class(aetools
.ComponentItem
):
858 """class - the type of a value """
860 class _3c_Inheritance_3e_(aetools
.NProperty
):
861 """<Inheritance> - inherits some of its properties from this class """
867 class event(aetools
.ComponentItem
):
868 """event - an AppleEvents event """
873 class property(aetools
.ComponentItem
):
874 """property - an AppleEvents property """
877 properties
= property
879 class constant(aetools
.ComponentItem
):
880 """constant - A constant value """
885 class preposition(aetools
.ComponentItem
):
886 """preposition - an AppleEvents preposition """
889 prepositions
= preposition
891 class reference_form(aetools
.ComponentItem
):
892 """reference form - an AppleEvents key form """
895 reference_forms
= reference_form
897 class handler(aetools
.ComponentItem
):
898 """handler - an AppleScript event or subroutine handler """
903 class data(aetools
.ComponentItem
):
904 """data - an AppleScript raw data object """
907 class text(aetools
.ComponentItem
):
908 """text - text with language and style information """
911 class international_text(aetools
.ComponentItem
):
912 """international text - """
915 international_text
= international_text
917 class string(aetools
.ComponentItem
):
918 """string - text in 8-bit Macintosh Roman format """
923 class styled_text(aetools
.ComponentItem
):
927 styled_text
= styled_text
929 class styled_Clipboard_text(aetools
.ComponentItem
):
930 """styled Clipboard text - """
933 styled_Clipboard_text
= styled_Clipboard_text
935 class Unicode_text(aetools
.ComponentItem
):
936 """Unicode text - """
939 Unicode_text
= Unicode_text
941 class styled_Unicode_text(aetools
.ComponentItem
):
942 """styled Unicode text - """
945 styled_Unicode_text
= styled_Unicode_text
947 class encoded_string(aetools
.ComponentItem
):
948 """encoded string - text encoded using the Text Encoding Converter """
951 encoded_strings
= encoded_string
953 class C_string(aetools
.ComponentItem
):
954 """C string - text followed by a null """
959 class Pascal_string(aetools
.ComponentItem
):
960 """Pascal string - text up to 255 characters preceded by a length byte """
963 Pascal_strings
= Pascal_string
965 class character(aetools
.ComponentItem
):
966 """character - an individual text character """
969 characters
= character
971 class text_item(aetools
.ComponentItem
):
972 """text item - text between delimiters """
975 text_items
= text_item
977 class writing_code(aetools
.ComponentItem
):
978 """writing code - codes that identify the language and script system """
981 class writing_code_info(aetools
.ComponentItem
):
982 """writing code info - script code and language code of text run """
984 class script_code(aetools
.NProperty
):
985 """script code - the script code for the text """
988 class language_code(aetools
.NProperty
):
989 """language code - the language code for the text """
993 writing_code_infos
= writing_code_info
995 class _empty_ae_name(aetools
.ComponentItem
):
996 """ - the undefined value """
999 class missing_value(aetools
.ComponentItem
):
1000 """missing value - unavailable value, such as properties missing from heterogeneous classes in a Whose clause """
1003 missing_values
= missing_value
1005 class reference(aetools
.ComponentItem
):
1006 """reference - an AppleScript reference """
1009 references
= reference
1011 class anything(aetools
.ComponentItem
):
1012 """anything - any class or reference """
1015 class type_class(aetools
.ComponentItem
):
1016 """type class - the name of a particular class (or any four-character code) """
1019 class RGB_color(aetools
.ComponentItem
):
1020 """RGB color - Three integers specifying red, green, blue color values """
1023 RGB_colors
= RGB_color
1025 class picture(aetools
.ComponentItem
):
1026 """picture - A QuickDraw picture object """
1031 class sound(aetools
.ComponentItem
):
1032 """sound - a sound object on the clipboard """
1037 class version(aetools
.ComponentItem
):
1038 """version - a version value """
1041 class file_specification(aetools
.ComponentItem
):
1042 """file specification - a file specification as used by the operating system """
1045 file_specifications
= file_specification
1047 class alias(aetools
.ComponentItem
):
1048 """alias - a file on a disk or server. The file must exist when you check the syntax of your script. """
1053 class machine(aetools
.ComponentItem
):
1054 """machine - a computer """
1059 class zone(aetools
.ComponentItem
):
1060 """zone - an AppleTalk zone """
1065 class keystroke(aetools
.ComponentItem
):
1066 """keystroke - a press of a key combination on a Macintosh keyboard """
1068 class key(aetools
.NProperty
):
1069 """key - the character for the key was pressed (ignoring modifiers) """
1072 class modifiers(aetools
.NProperty
):
1073 """modifiers - the modifier keys pressed in combination """
1076 class key_kind(aetools
.NProperty
):
1077 """key kind - the kind of key that was pressed """
1081 keystrokes
= keystroke
1083 class seconds(aetools
.ComponentItem
):
1084 """seconds - more than one second """
1087 class date(aetools
.ComponentItem
):
1088 """date - Absolute date and time values """
1090 class weekday(aetools
.NProperty
):
1091 """weekday - the day of a week of a date """
1094 class month(aetools
.NProperty
):
1095 """month - the month of a date """
1098 class day(aetools
.NProperty
):
1099 """day - the day of the month of a date """
1102 class year(aetools
.NProperty
):
1103 """year - the year of a date """
1106 class time(aetools
.NProperty
):
1107 """time - the time since midnight of a date """
1110 class date_string(aetools
.NProperty
):
1111 """date string - the date portion of a date-time value as text """
1114 class time_string(aetools
.NProperty
):
1115 """time string - the time portion of a date-time value as text """
1121 class month(aetools
.ComponentItem
):
1122 """month - a month """
1127 class January(aetools
.ComponentItem
):
1128 """January - the month of January """
1131 class February(aetools
.ComponentItem
):
1132 """February - the month of February """
1135 class March(aetools
.ComponentItem
):
1136 """March - the month of March """
1139 class April(aetools
.ComponentItem
):
1140 """April - the month of April """
1143 class May(aetools
.ComponentItem
):
1144 """May - the month of May """
1147 class June(aetools
.ComponentItem
):
1148 """June - the month of June """
1151 class July(aetools
.ComponentItem
):
1152 """July - the month of July """
1155 class August(aetools
.ComponentItem
):
1156 """August - the month of August """
1159 class September(aetools
.ComponentItem
):
1160 """September - the month of September """
1163 class October(aetools
.ComponentItem
):
1164 """October - the month of October """
1167 class November(aetools
.ComponentItem
):
1168 """November - the month of November """
1171 class December(aetools
.ComponentItem
):
1172 """December - the month of December """
1175 class weekday(aetools
.ComponentItem
):
1176 """weekday - a weekday """
1181 class Sunday(aetools
.ComponentItem
):
1182 """Sunday - Sunday """
1185 class Monday(aetools
.ComponentItem
):
1186 """Monday - Monday """
1189 class Tuesday(aetools
.ComponentItem
):
1190 """Tuesday - Tuesday """
1193 class Wednesday(aetools
.ComponentItem
):
1194 """Wednesday - Wednesday """
1197 class Thursday(aetools
.ComponentItem
):
1198 """Thursday - Thursday """
1201 class Friday(aetools
.ComponentItem
):
1202 """Friday - Friday """
1205 class Saturday(aetools
.ComponentItem
):
1206 """Saturday - Saturday """
1209 class metres(aetools
.ComponentItem
):
1210 """metres - a distance measurement in SI meters """
1215 class inches(aetools
.ComponentItem
):
1216 """inches - a distance measurement in Imperial inches """
1219 class feet(aetools
.ComponentItem
):
1220 """feet - a distance measurement in Imperial feet """
1223 class yards(aetools
.ComponentItem
):
1224 """yards - a distance measurement in Imperial yards """
1227 class miles(aetools
.ComponentItem
):
1228 """miles - a distance measurement in Imperial miles """
1231 class kilometres(aetools
.ComponentItem
):
1232 """kilometres - a distance measurement in SI kilometers """
1235 kilometers
= kilometres
1237 class centimetres(aetools
.ComponentItem
):
1238 """centimetres - a distance measurement in SI centimeters """
1241 centimeters
= centimetres
1243 class square_metres(aetools
.ComponentItem
):
1244 """square metres - an area measurement in SI square meters """
1247 square_meters
= square_metres
1249 class square_feet(aetools
.ComponentItem
):
1250 """square feet - an area measurement in Imperial square feet """
1253 class square_yards(aetools
.ComponentItem
):
1254 """square yards - an area measurement in Imperial square yards """
1257 class square_miles(aetools
.ComponentItem
):
1258 """square miles - an area measurement in Imperial square miles """
1261 class square_kilometres(aetools
.ComponentItem
):
1262 """square kilometres - an area measurement in SI square kilometers """
1265 square_kilometers
= square_kilometres
1267 class litres(aetools
.ComponentItem
):
1268 """litres - a volume measurement in SI liters """
1273 class gallons(aetools
.ComponentItem
):
1274 """gallons - a volume measurement in Imperial gallons """
1277 class quarts(aetools
.ComponentItem
):
1278 """quarts - a volume measurement in Imperial quarts """
1281 class cubic_metres(aetools
.ComponentItem
):
1282 """cubic metres - a volume measurement in SI cubic meters """
1285 cubic_meters
= cubic_metres
1287 class cubic_centimetres(aetools
.ComponentItem
):
1288 """cubic centimetres - a volume measurement in SI cubic centimeters """
1291 cubic_centimeters
= cubic_centimetres
1293 class cubic_feet(aetools
.ComponentItem
):
1294 """cubic feet - a volume measurement in Imperial cubic feet """
1297 class cubic_inches(aetools
.ComponentItem
):
1298 """cubic inches - a volume measurement in Imperial cubic inches """
1301 class cubic_yards(aetools
.ComponentItem
):
1302 """cubic yards - a distance measurement in Imperial cubic yards """
1305 class kilograms(aetools
.ComponentItem
):
1306 """kilograms - a mass measurement in SI kilograms """
1309 class grams(aetools
.ComponentItem
):
1310 """grams - a mass measurement in SI meters """
1313 class ounces(aetools
.ComponentItem
):
1314 """ounces - a weight measurement in SI meters """
1317 class pounds(aetools
.ComponentItem
):
1318 """pounds - a weight measurement in SI meters """
1321 class degrees_Celsius(aetools
.ComponentItem
):
1322 """degrees Celsius - a temperature measurement in SI degrees Celsius """
1325 class degrees_Fahrenheit(aetools
.ComponentItem
):
1326 """degrees Fahrenheit - a temperature measurement in degrees Fahrenheit """
1329 class degrees_Kelvin(aetools
.ComponentItem
):
1330 """degrees Kelvin - a temperature measurement in degrees Kelvin """
1333 class upper_case(aetools
.ComponentItem
):
1334 """upper case - Text with lower case converted to upper case """
1337 class app(aetools
.ComponentItem
):
1338 """app - Short name for application """
1342 class result(aetools
.NProperty
):
1343 """result - the last result of evaluation """
1346 class space(aetools
.NProperty
):
1347 """space - a space character """
1350 class _return(aetools
.NProperty
):
1351 """return - a return character """
1354 class tab(aetools
.NProperty
):
1355 """tab - a tab character """
1358 class minutes(aetools
.NProperty
):
1359 """minutes - the number of seconds in a minute """
1362 class hours(aetools
.NProperty
):
1363 """hours - the number of seconds in an hour """
1366 class days(aetools
.NProperty
):
1367 """days - the number of seconds in a day """
1370 class weeks(aetools
.NProperty
):
1371 """weeks - the number of seconds in a week """
1374 class pi(aetools
.NProperty
):
1375 """pi - the constant pi """
1378 class print_length(aetools
.NProperty
):
1379 """print length - the maximum length to print """
1382 class print_depth(aetools
.NProperty
):
1383 """print depth - the maximum depth to print """
1386 class text_item_delimiters(aetools
.NProperty
):
1387 """text item delimiters - the text item delimiters of a string """
1390 class AppleScript(aetools
.NProperty
):
1391 """AppleScript - the top-level script object """
1396 boolean
._propdict
= {
1398 boolean
._elemdict
= {
1400 integer
._propdict
= {
1402 integer
._elemdict
= {
1408 number
._propdict
= {
1410 number
._elemdict
= {
1414 'reverse' : reverse
,
1419 linked_list
._propdict
= {
1422 linked_list
._elemdict
= {
1424 vector
._propdict
= {
1427 vector
._elemdict
= {
1429 record
._propdict
= {
1431 record
._elemdict
= {
1438 script
._propdict
= {
1442 script
._elemdict
= {
1444 list_or_record
._propdict
= {
1446 list_or_record
._elemdict
= {
1448 list_or_string
._propdict
= {
1450 list_or_string
._elemdict
= {
1452 number_or_string
._propdict
= {
1454 number_or_string
._elemdict
= {
1456 alias_or_string
._propdict
= {
1458 alias_or_string
._elemdict
= {
1460 list_2c__record_or_text
._propdict
= {
1462 list_2c__record_or_text
._elemdict
= {
1464 number_or_date
._propdict
= {
1466 number_or_date
._elemdict
= {
1468 number_2c__date_or_text
._propdict
= {
1470 number_2c__date_or_text
._elemdict
= {
1472 _class
._propdict
= {
1473 '_3c_Inheritance_3e_' : _3c_Inheritance_3e_
,
1475 _class
._elemdict
= {
1481 property._propdict
= {
1483 property._elemdict
= {
1485 constant
._propdict
= {
1487 constant
._elemdict
= {
1489 preposition
._propdict
= {
1491 preposition
._elemdict
= {
1493 reference_form
._propdict
= {
1495 reference_form
._elemdict
= {
1497 handler
._propdict
= {
1499 handler
._elemdict
= {
1509 international_text
._propdict
= {
1511 international_text
._elemdict
= {
1513 international_text
._propdict
= {
1515 international_text
._elemdict
= {
1517 string
._propdict
= {
1519 string
._elemdict
= {
1521 styled_text
._propdict
= {
1523 styled_text
._elemdict
= {
1525 styled_text
._propdict
= {
1527 styled_text
._elemdict
= {
1529 styled_Clipboard_text
._propdict
= {
1531 styled_Clipboard_text
._elemdict
= {
1533 styled_Clipboard_text
._propdict
= {
1535 styled_Clipboard_text
._elemdict
= {
1537 Unicode_text
._propdict
= {
1539 Unicode_text
._elemdict
= {
1541 Unicode_text
._propdict
= {
1543 Unicode_text
._elemdict
= {
1545 styled_Unicode_text
._propdict
= {
1547 styled_Unicode_text
._elemdict
= {
1549 styled_Unicode_text
._propdict
= {
1551 styled_Unicode_text
._elemdict
= {
1553 encoded_string
._propdict
= {
1555 encoded_string
._elemdict
= {
1557 C_string
._propdict
= {
1559 C_string
._elemdict
= {
1561 Pascal_string
._propdict
= {
1563 Pascal_string
._elemdict
= {
1565 character
._propdict
= {
1567 character
._elemdict
= {
1569 text_item
._propdict
= {
1571 text_item
._elemdict
= {
1573 writing_code
._propdict
= {
1575 writing_code
._elemdict
= {
1577 writing_code_info
._propdict
= {
1578 'script_code' : script_code
,
1579 'language_code' : language_code
,
1581 writing_code_info
._elemdict
= {
1583 _empty_ae_name
._propdict
= {
1585 _empty_ae_name
._elemdict
= {
1587 missing_value
._propdict
= {
1589 missing_value
._elemdict
= {
1591 reference
._propdict
= {
1593 reference
._elemdict
= {
1595 anything
._propdict
= {
1597 anything
._elemdict
= {
1599 type_class
._propdict
= {
1601 type_class
._elemdict
= {
1603 RGB_color
._propdict
= {
1605 RGB_color
._elemdict
= {
1607 picture
._propdict
= {
1609 picture
._elemdict
= {
1615 version
._propdict
= {
1617 version
._elemdict
= {
1619 file_specification
._propdict
= {
1621 file_specification
._elemdict
= {
1627 machine
._propdict
= {
1629 machine
._elemdict
= {
1635 keystroke
._propdict
= {
1637 'modifiers' : modifiers
,
1638 'key_kind' : key_kind
,
1640 keystroke
._elemdict
= {
1642 seconds
._propdict
= {
1644 seconds
._elemdict
= {
1647 'weekday' : weekday
,
1652 'date_string' : date_string
,
1653 'time_string' : time_string
,
1661 January
._propdict
= {
1663 January
._elemdict
= {
1665 February
._propdict
= {
1667 February
._elemdict
= {
1689 August
._propdict
= {
1691 August
._elemdict
= {
1693 September
._propdict
= {
1695 September
._elemdict
= {
1697 October
._propdict
= {
1699 October
._elemdict
= {
1701 November
._propdict
= {
1703 November
._elemdict
= {
1705 December
._propdict
= {
1707 December
._elemdict
= {
1709 weekday
._propdict
= {
1711 weekday
._elemdict
= {
1713 Sunday
._propdict
= {
1715 Sunday
._elemdict
= {
1717 Monday
._propdict
= {
1719 Monday
._elemdict
= {
1721 Tuesday
._propdict
= {
1723 Tuesday
._elemdict
= {
1725 Wednesday
._propdict
= {
1727 Wednesday
._elemdict
= {
1729 Thursday
._propdict
= {
1731 Thursday
._elemdict
= {
1733 Friday
._propdict
= {
1735 Friday
._elemdict
= {
1737 Saturday
._propdict
= {
1739 Saturday
._elemdict
= {
1741 metres
._propdict
= {
1743 metres
._elemdict
= {
1745 inches
._propdict
= {
1747 inches
._elemdict
= {
1761 kilometres
._propdict
= {
1763 kilometres
._elemdict
= {
1765 centimetres
._propdict
= {
1767 centimetres
._elemdict
= {
1769 square_metres
._propdict
= {
1771 square_metres
._elemdict
= {
1773 square_feet
._propdict
= {
1775 square_feet
._elemdict
= {
1777 square_yards
._propdict
= {
1779 square_yards
._elemdict
= {
1781 square_miles
._propdict
= {
1783 square_miles
._elemdict
= {
1785 square_kilometres
._propdict
= {
1787 square_kilometres
._elemdict
= {
1789 litres
._propdict
= {
1791 litres
._elemdict
= {
1793 gallons
._propdict
= {
1795 gallons
._elemdict
= {
1797 quarts
._propdict
= {
1799 quarts
._elemdict
= {
1801 cubic_metres
._propdict
= {
1803 cubic_metres
._elemdict
= {
1805 cubic_centimetres
._propdict
= {
1807 cubic_centimetres
._elemdict
= {
1809 cubic_feet
._propdict
= {
1811 cubic_feet
._elemdict
= {
1813 cubic_inches
._propdict
= {
1815 cubic_inches
._elemdict
= {
1817 cubic_yards
._propdict
= {
1819 cubic_yards
._elemdict
= {
1821 kilograms
._propdict
= {
1823 kilograms
._elemdict
= {
1829 ounces
._propdict
= {
1831 ounces
._elemdict
= {
1833 pounds
._propdict
= {
1835 pounds
._elemdict
= {
1837 degrees_Celsius
._propdict
= {
1839 degrees_Celsius
._elemdict
= {
1841 degrees_Fahrenheit
._propdict
= {
1843 degrees_Fahrenheit
._elemdict
= {
1845 degrees_Kelvin
._propdict
= {
1847 degrees_Kelvin
._elemdict
= {
1849 upper_case
._propdict
= {
1851 upper_case
._elemdict
= {
1858 'case' : 'case', # case
1859 'diacriticals' : 'diac', # diacriticals
1860 'white_space' : 'whit', # white space
1861 'hyphens' : 'hyph', # hyphens
1862 'expansion' : 'expa', # expansion
1863 'punctuation' : 'punc', # punctuation
1864 'application_responses' : 'rmte', # remote event replies
1868 'true' : 'true', # the true boolean value
1869 'false' : 'fals', # the false boolean value
1873 'current_application' : 'cura', # the current application
1877 'option_down' : 'Kopt', #
1878 'command_down' : 'Kcmd', #
1879 'control_down' : 'Kctl', #
1880 'shift_down' : 'Ksft', #
1881 'caps_lock_down' : 'Kclk', #
1885 'escape_key' : 'ks5\000', #
1886 'delete_key' : 'ks3\000', #
1887 'tab_key' : 'ks0\000', #
1888 'return_key' : 'ks$\000', #
1889 'clear_key' : 'ksG\000', #
1890 'enter_key' : 'ksL\000', #
1891 'up_arrow_key' : 'ks~\000', #
1892 'down_arrow_key' : 'ks}\000', #
1893 'left_arrow_key' : 'ks{\000', #
1894 'right_arrow_key' : 'ks|\000', #
1895 'help_key' : 'ksr\000', #
1896 'home_key' : 'kss\000', #
1897 'page_up_key' : 'kst\000', #
1898 'page_down_key' : 'ksy\000', #
1899 'forward_del_key' : 'ksu\000', #
1900 'end_key' : 'ksw\000', #
1901 'F1_key' : 'ksz\000', #
1902 'F2_key' : 'ksx\000', #
1903 'F3_key' : 'ksc\000', #
1904 'F4_key' : 'ksv\000', #
1905 'F5_key' : 'ks`\000', #
1906 'F6_key' : 'ksa\000', #
1907 'F7_key' : 'ksb\000', #
1908 'F8_key' : 'ksd\000', #
1909 'F9_key' : 'kse\000', #
1910 'F10_key' : 'ksm\000', #
1911 'F11_key' : 'ksg\000', #
1912 'F12_key' : 'kso\000', #
1913 'F13_key' : 'ksi\000', #
1914 'F14_key' : 'ksk\000', #
1915 'F15_key' : 'ksq\000', #
1920 # Indices of types declared in this module
1922 _classdeclarations
= {
1925 'fss ' : file_specification
,
1927 'ccmt' : cubic_centimetres
,
1928 'cfet' : cubic_feet
,
1931 'sqyd' : square_yards
,
1933 'utxt' : Unicode_text
,
1938 'sutx' : styled_Unicode_text
,
1939 'sqmi' : square_miles
,
1940 'undf' : _empty_ae_name
,
1944 'kfrm' : reference_form
,
1947 'sqrm' : square_metres
,
1957 'lr ' : list_or_record
,
1959 'cuin' : cubic_inches
,
1962 'encs' : encoded_string
,
1964 'case' : upper_case
,
1965 'styl' : styled_Clipboard_text
,
1966 'llst' : linked_list
,
1969 'ns ' : number_or_string
,
1974 'pstr' : Pascal_string
,
1977 'msng' : missing_value
,
1981 'sqft' : square_feet
,
1982 'kmtr' : kilometres
,
1984 'itxt' : international_text
,
1987 'nd ' : number_or_date
,
1991 'sqkm' : square_kilometres
,
1994 'cyrd' : cubic_yards
,
1997 'prep' : preposition
,
1998 'type' : type_class
,
2000 'citl' : writing_code_info
,
2001 'sf ' : alias_or_string
,
2002 'degc' : degrees_Celsius
,
2004 'ls ' : list_or_string
,
2007 'psct' : writing_code
,
2008 'lrs ' : list_2c__record_or_text
,
2009 'cmtr' : centimetres
,
2012 'degk' : degrees_Kelvin
,
2015 'degf' : degrees_Fahrenheit
,
2020 'nds ' : number_2c__date_or_text
,
2021 'STXT' : styled_text
,
2022 'cmet' : cubic_metres
,
2030 _propdeclarations
= {
2031 'pscd' : script_code
,
2035 'txdl' : text_item_delimiters
,
2036 'prln' : print_length
,
2037 'prdp' : print_depth
,
2042 'plcd' : language_code
,
2044 'tstr' : time_string
,
2051 'c@#^' : _3c_Inheritance_3e_
,
2053 'ascr' : AppleScript
,
2055 'dstr' : date_string
,
2065 _compdeclarations
= {
2068 _enumdeclarations
= {
2069 'boov' : _Enum_boov
,
2070 'ekst' : _Enum_ekst
,
2071 'misc' : _Enum_misc
,
2072 'cons' : _Enum_cons
,
2073 'eMds' : _Enum_eMds
,