summaryrefslogtreecommitdiffstats
path: root/Lib/plat-mac/lib-scriptpackages/Terminal/Terminal_Suite.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/plat-mac/lib-scriptpackages/Terminal/Terminal_Suite.py')
-rw-r--r--Lib/plat-mac/lib-scriptpackages/Terminal/Terminal_Suite.py189
1 files changed, 44 insertions, 145 deletions
diff --git a/Lib/plat-mac/lib-scriptpackages/Terminal/Terminal_Suite.py b/Lib/plat-mac/lib-scriptpackages/Terminal/Terminal_Suite.py
index cc35a01..a724e7f 100644
--- a/Lib/plat-mac/lib-scriptpackages/Terminal/Terminal_Suite.py
+++ b/Lib/plat-mac/lib-scriptpackages/Terminal/Terminal_Suite.py
@@ -1,7 +1,7 @@
"""Suite Terminal Suite: Terms and Events for controlling the Terminal application
Level 1, version 1
-Generated from /Applications/Utilities/Terminal.app/Contents/Resources/Terminal.rsrc
+Generated from /Applications/Utilities/Terminal.app
AETE/AEUT resource version 1/0, language 0, script 0
"""
@@ -12,14 +12,13 @@ _code = 'trmx'
class Terminal_Suite_Events:
- def count(self, _object=None, _attributes={}, **_arguments):
- """count: Return the number of elements of a particular class within an object
- Required argument: a reference to the objects to be counted
+ def GetURL(self, _object, _attributes={}, **_arguments):
+ """GetURL: Opens a telnet: URL
+ Required argument: the object for the command
Keyword argument _attributes: AppleEvent attribute dictionary
- Returns: the number of objects counted
"""
- _code = 'core'
- _subcode = 'cnte'
+ _code = 'GURL'
+ _subcode = 'GURL'
if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object
@@ -34,16 +33,17 @@ class Terminal_Suite_Events:
return _arguments['----']
_argmap_do_script = {
- 'with_command' : 'cmnd',
'in_' : 'kfil',
+ 'with_command' : 'cmnd',
}
def do_script(self, _object, _attributes={}, **_arguments):
"""do script: Run a UNIX shell script or command
- Required argument: data to be passed to the Terminal application as the command line
- Keyword argument with_command: data to be passed to the Terminal application as the command line, deprecated, use direct parameter
+ Required argument: the object for the command
Keyword argument in_: the window in which to execute the command
+ Keyword argument with_command: data to be passed to the Terminal application as the command line, deprecated, use direct parameter
Keyword argument _attributes: AppleEvent attribute dictionary
+ Returns: the reply for the command
"""
_code = 'core'
_subcode = 'dosc'
@@ -60,61 +60,20 @@ class Terminal_Suite_Events:
if _arguments.has_key('----'):
return _arguments['----']
- def quit(self, _no_object=None, _attributes={}, **_arguments):
- """quit: Quit the Terminal application
- Keyword argument _attributes: AppleEvent attribute dictionary
- """
- _code = 'aevt'
- _subcode = 'quit'
-
- if _arguments: raise TypeError, 'No optional args expected'
- if _no_object != None: raise TypeError, 'No direct arg expected'
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.get('errn', 0):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- def run(self, _no_object=None, _attributes={}, **_arguments):
- """run: Run the Terminal application
- Keyword argument _attributes: AppleEvent attribute dictionary
- """
- _code = 'aevt'
- _subcode = 'oapp'
-
- if _arguments: raise TypeError, 'No optional args expected'
- if _no_object != None: raise TypeError, 'No direct arg expected'
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.get('errn', 0):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
class application(aetools.ComponentItem):
"""application - The Terminal program """
want = 'capp'
-class frontmost(aetools.NProperty):
- """frontmost - Is this the active application? """
- which = 'pisf'
- want = 'bool'
-class name(aetools.NProperty):
- """name - the name of the application """
- which = 'pnam'
- want = 'TEXT'
-class version(aetools.NProperty):
- """version - the version of the application """
- which = 'vers'
- want = 'vers'
-# element 'cwin' as ['name', 'indx']
+class _3c_Inheritance_3e_(aetools.NProperty):
+ """<Inheritance> - All of the properties of the superclass. """
+ which = 'c@#^'
+ want = 'capp'
+class properties(aetools.NProperty):
+ """properties - every property of the Terminal program """
+ which = 'pALL'
+ want = '****'
+# element 'cwin' as ['name', 'indx', 'rele', 'rang', 'test', 'ID ']
+# element 'docu' as ['name', 'indx', 'rele', 'rang', 'test']
applications = application
@@ -124,15 +83,15 @@ class window(aetools.ComponentItem):
class background_color(aetools.NProperty):
"""background color - the background color for the window """
which = 'pbcl'
- want = 'TEXT'
+ want = '****'
class bold_text_color(aetools.NProperty):
"""bold text color - the bold text color for the window """
which = 'pbtc'
- want = 'TEXT'
+ want = '****'
class bounds(aetools.NProperty):
"""bounds - the boundary rectangle for the window, relative to the upper left corner of the screen """
which = 'pbnd'
- want = 'qdrt'
+ want = '****'
class busy(aetools.NProperty):
"""busy - Is the window busy running a process? """
which = 'busy'
@@ -140,55 +99,31 @@ class busy(aetools.NProperty):
class contents(aetools.NProperty):
"""contents - the currently visible contents of the window """
which = 'pcnt'
- want = 'TEXT'
+ want = 'utxt'
class cursor_color(aetools.NProperty):
"""cursor color - the cursor color for the window """
which = 'pcuc'
- want = 'TEXT'
+ want = '****'
class custom_title(aetools.NProperty):
"""custom title - the custom title for the window """
which = 'titl'
- want = 'TEXT'
-class floating(aetools.NProperty):
- """floating - Does the window float? """
- which = 'isfl'
- want = 'bool'
+ want = 'utxt'
class frame(aetools.NProperty):
"""frame - the origin and size of the window """
which = 'pfra'
- want = 'list'
-class has_close_box(aetools.NProperty):
- """has close box - Does the window have a close box? """
- which = 'hclb'
- want = 'bool'
-class has_title_bar(aetools.NProperty):
- """has title bar - Does the window have a title bar? """
- which = 'ptit'
+ want = '****'
+class frontmost(aetools.NProperty):
+ """frontmost - Is the window in front of the other Terminal windows? """
+ which = 'pisf'
want = 'bool'
class history(aetools.NProperty):
"""history - the contents of the entire scrolling buffer of the window """
which = 'hist'
- want = 'TEXT'
-class index(aetools.NProperty):
- """index - the number of the window """
- which = 'pidx'
- want = 'long'
-class miniaturizable(aetools.NProperty):
- """miniaturizable - Is the window miniaturizable? """
- which = 'ismn'
- want = 'bool'
-class miniaturized(aetools.NProperty):
- """miniaturized - Is the window miniaturized? """
- which = 'pmnd'
- want = 'bool'
-class modal(aetools.NProperty):
- """modal - Is the window modal? """
- which = 'pmod'
- want = 'bool'
+ want = 'utxt'
class normal_text_color(aetools.NProperty):
"""normal text color - the normal text color for the window """
which = 'ptxc'
- want = 'TEXT'
+ want = '****'
class number_of_columns(aetools.NProperty):
"""number of columns - the number of columns in the window """
which = 'ccol'
@@ -200,23 +135,19 @@ class number_of_rows(aetools.NProperty):
class origin(aetools.NProperty):
"""origin - the lower left coordinates of the window, relative to the lower left corner of the screen """
which = 'pori'
- want = 'list'
+ want = '****'
class position(aetools.NProperty):
"""position - the upper left coordinates of the window, relative to the upper left corner of the screen """
which = 'ppos'
- want = 'QDpt'
+ want = '****'
class processes(aetools.NProperty):
"""processes - a list of the currently running processes """
which = 'prcs'
- want = 'list'
-class resizable(aetools.NProperty):
- """resizable - Is the window resizable? """
- which = 'prsz'
- want = 'bool'
+ want = 'utxt'
class size(aetools.NProperty):
"""size - the width and height of the window """
which = 'psiz'
- want = 'list'
+ want = '****'
class title_displays_custom_title(aetools.NProperty):
"""title displays custom title - Does the title for the window contain a custom title? """
which = 'tdct'
@@ -237,31 +168,21 @@ class title_displays_window_size(aetools.NProperty):
"""title displays window size - Does the title for the window contain the window size? """
which = 'tdws'
want = 'bool'
-class visible(aetools.NProperty):
- """visible - Is the window visible? """
- which = 'pvis'
- want = 'bool'
-class zoomable(aetools.NProperty):
- """zoomable - Is the window zoomable? """
- which = 'iszm'
- want = 'bool'
-class zoomed(aetools.NProperty):
- """zoomed - Is the window zoomed? """
- which = 'pzum'
- want = 'bool'
windows = window
application._superclassnames = []
+import Standard_Suite
application._privpropdict = {
- 'frontmost' : frontmost,
- 'name' : name,
- 'version' : version,
+ '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
+ 'properties' : properties,
}
application._privelemdict = {
+ 'document' : Standard_Suite.document,
'window' : window,
}
window._superclassnames = []
window._privpropdict = {
+ '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
'background_color' : background_color,
'bold_text_color' : bold_text_color,
'bounds' : bounds,
@@ -269,33 +190,22 @@ window._privpropdict = {
'contents' : contents,
'cursor_color' : cursor_color,
'custom_title' : custom_title,
- 'floating' : floating,
'frame' : frame,
'frontmost' : frontmost,
- 'has_close_box' : has_close_box,
- 'has_title_bar' : has_title_bar,
'history' : history,
- 'index' : index,
- 'miniaturizable' : miniaturizable,
- 'miniaturized' : miniaturized,
- 'modal' : modal,
- 'name' : name,
'normal_text_color' : normal_text_color,
'number_of_columns' : number_of_columns,
'number_of_rows' : number_of_rows,
'origin' : origin,
'position' : position,
'processes' : processes,
- 'resizable' : resizable,
+ 'properties' : properties,
'size' : size,
'title_displays_custom_title' : title_displays_custom_title,
'title_displays_device_name' : title_displays_device_name,
'title_displays_file_name' : title_displays_file_name,
'title_displays_shell_path' : title_displays_shell_path,
'title_displays_window_size' : title_displays_window_size,
- 'visible' : visible,
- 'zoomable' : zoomable,
- 'zoomed' : zoomed,
}
window._privelemdict = {
}
@@ -310,40 +220,29 @@ _classdeclarations = {
_propdeclarations = {
'busy' : busy,
+ 'c@#^' : _3c_Inheritance_3e_,
'ccol' : number_of_columns,
'crow' : number_of_rows,
- 'hclb' : has_close_box,
'hist' : history,
- 'isfl' : floating,
- 'ismn' : miniaturizable,
- 'iszm' : zoomable,
+ 'pALL' : properties,
'pbcl' : background_color,
'pbnd' : bounds,
'pbtc' : bold_text_color,
'pcnt' : contents,
'pcuc' : cursor_color,
'pfra' : frame,
- 'pidx' : index,
'pisf' : frontmost,
- 'pmnd' : miniaturized,
- 'pmod' : modal,
- 'pnam' : name,
'pori' : origin,
'ppos' : position,
'prcs' : processes,
- 'prsz' : resizable,
'psiz' : size,
- 'ptit' : has_title_bar,
'ptxc' : normal_text_color,
- 'pvis' : visible,
- 'pzum' : zoomed,
'tdct' : title_displays_custom_title,
'tddn' : title_displays_device_name,
'tdfn' : title_displays_file_name,
'tdsp' : title_displays_shell_path,
'tdws' : title_displays_window_size,
'titl' : custom_title,
- 'vers' : version,
}
_compdeclarations = {