Obsolete, removed.
This commit is contained in:
parent
cbed91b4db
commit
1cd95229a2
File diff suppressed because one or more lines are too long
|
@ -1,18 +0,0 @@
|
|||
[(]*[)]
|
||||
*.Lib
|
||||
*.MAP
|
||||
*.SYM
|
||||
*.c
|
||||
*.dbg
|
||||
*.exp
|
||||
*.h
|
||||
*.hqx
|
||||
*.ppc.slb
|
||||
*.pyc
|
||||
*.xMAP
|
||||
*.xSYM
|
||||
*.ľ
|
||||
*.ľ.exp
|
||||
* Data
|
||||
*.prj
|
||||
*.prj.exp
|
|
@ -1,84 +0,0 @@
|
|||
(':Demo', '')
|
||||
(':EditPythonPrefs', '')
|
||||
(':Extensions:Imaging', None)
|
||||
(':Extensions:NumPy', None)
|
||||
(':Extensions:img', '')
|
||||
(':Extensions:midi', None)
|
||||
(':Grammar:Grammar', None)
|
||||
(':Lib', '')
|
||||
(':Mac:Demo', '')
|
||||
(':Mac:Distributions', None)
|
||||
(':Mac:GUSI-mods', None)
|
||||
(':Mac:HISTORY', ':Relnotes:')
|
||||
(':Mac:Lib', '')
|
||||
(':Mac:MPW', None)
|
||||
(':Mac:Modules', None)
|
||||
(':Mac:ReadMeOrSuffer', ':ReadMeOrSuffer')
|
||||
(':Mac:ReadmeSource', None)
|
||||
(':Mac:Relnotes', ':Relnotes:')
|
||||
(':Mac:Relnotes-source', ':Relnotes:')
|
||||
(':Mac:Resources', None)
|
||||
(':Mac:TODO', None)
|
||||
(':Mac:Tools:BBPy', '')
|
||||
(':Mac:Tools:twit', '')
|
||||
(':Mac:Unsupported', None)
|
||||
(':Mac:mwerks', None)
|
||||
(':Mac:scripts', '')
|
||||
(':MkPluginAliases', '')
|
||||
(':Modules', None)
|
||||
(':PlugIns:AE.CFM68K.slb', None)
|
||||
(':PlugIns:Cm.CFM68K.slb', None)
|
||||
(':PlugIns:Ctl.CFM68K.slb', None)
|
||||
(':PlugIns:Dlg.CFM68K.slb', None)
|
||||
(':PlugIns:Evt.CFM68K.slb', None)
|
||||
(':PlugIns:Fm.CFM68K.slb', None)
|
||||
(':PlugIns:List.CFM68K.slb', None)
|
||||
(':PlugIns:Menu.CFM68K.slb', None)
|
||||
(':PlugIns:Qd.CFM68K.slb', None)
|
||||
(':PlugIns:Qt.CFM68K.slb', None)
|
||||
(':PlugIns:Res.CFM68K.slb', None)
|
||||
(':PlugIns:Scrap.CFM68K.slb', None)
|
||||
(':PlugIns:Snd.CFM68K.slb', None)
|
||||
(':PlugIns:TE.CFM68K.slb', None)
|
||||
(':PlugIns:Win.CFM68K.slb', None)
|
||||
(':PlugIns:_tkinter.CFM68K.slb', '')
|
||||
(':PlugIns:ctb.CFM68K.slb', '')
|
||||
(':PlugIns:gdbm.CFM68K.slb', '')
|
||||
(':PlugIns:icglue.CFM68K.slb', '')
|
||||
(':PlugIns:imgcolormap.CFM68K.slb', None)
|
||||
(':PlugIns:imgformat.CFM68K.slb', None)
|
||||
(':PlugIns:imggif.CFM68K.slb', None)
|
||||
(':PlugIns:imgjpeg.CFM68K.slb', None)
|
||||
(':PlugIns:imgmodules.CFM68K.slb', '')
|
||||
(':PlugIns:imgop.CFM68K.slb', None)
|
||||
(':PlugIns:imgpbm.CFM68K.slb', None)
|
||||
(':PlugIns:imgpgm.CFM68K.slb', None)
|
||||
(':PlugIns:imgppm.CFM68K.slb', None)
|
||||
(':PlugIns:imgsgi.CFM68K.slb', None)
|
||||
(':PlugIns:imgtiff.CFM68K.slb', None)
|
||||
(':PlugIns:qtmodules.CFM68K.slb', '')
|
||||
(':PlugIns:toolboxmodules.CFM68K.slb', '')
|
||||
(':PlugIns:waste.CFM68K.slb', '')
|
||||
(':PythonApplet', '')
|
||||
(':PythonFAT', ':Python')
|
||||
(':Tools:bgen', None)
|
||||
(':Tools:modulator', None)
|
||||
(':jack-scripts', None)
|
||||
(':mac2unix-real.shar', None)
|
||||
(':mac2unix.shar', None)
|
||||
(':mkapplet', '')
|
||||
(':ppc-applets', None)
|
||||
(':pystone.py', None)
|
||||
(':readmefiles:ACKS', ':Relnotes:')
|
||||
(':readmefiles:FAQ', ':Relnotes:')
|
||||
(':build.mac', None)
|
||||
(':build.macstand', None)
|
||||
(':loop.py', None)
|
||||
(':PythonCoreCFM68K', '')
|
||||
(':PythonCorePPC', None)
|
||||
(':Include:mymath.h.jack', None)
|
||||
(':Mac:Tools:bruce', None)
|
||||
(':PlugIns:xx.CFM68K.slb', None)
|
||||
(':PlugIns:zlib.CFM68K.slb', '')
|
||||
(':readmefiles:NEWS', ':Relnotes:')
|
||||
(':readmefiles:README', ':relnotes:')
|
|
@ -1,15 +0,0 @@
|
|||
[(]*[)]
|
||||
*.Lib
|
||||
*.MAP
|
||||
*.SYM
|
||||
*.c
|
||||
*.dbg
|
||||
*.h
|
||||
*.hqx
|
||||
*.pyc
|
||||
*.slb
|
||||
*.xSYM
|
||||
*.ľ
|
||||
*.ľ.exp
|
||||
*.xMAP
|
||||
|
|
@ -1,47 +0,0 @@
|
|||
(':Demo', '')
|
||||
(':EditPythonPrefs', None)
|
||||
(':Extensions:img', '')
|
||||
(':Grammar:Grammar', None)
|
||||
(':Lib', '')
|
||||
(':Mac:Demo', '')
|
||||
(':Mac:Distributions', None)
|
||||
(':Mac:GUSI-mods', None)
|
||||
(':Mac:Lib', '')
|
||||
(':Mac:MPW', None)
|
||||
(':Mac:Modules', None)
|
||||
(':Mac:ReadMeOrSuffer', ':ReadMeOrSuffer')
|
||||
(':Mac:ReadmeSource', None)
|
||||
(':Mac:Relnotes-source', ':Relnotes:')
|
||||
(':Mac:Resources', None)
|
||||
(':Mac:TODO', None)
|
||||
(':Mac:Tools:BBPy', '')
|
||||
(':Mac:Tools:twit', '')
|
||||
(':Mac:Unsupported', None)
|
||||
(':Mac:mwerks', None)
|
||||
(':Mac:scripts', '')
|
||||
(':MkPluginAliases', None)
|
||||
(':Modules', None)
|
||||
(':PythonApplet', None)
|
||||
(':PythonPPC', None)
|
||||
(':Tools:bgen', None)
|
||||
(':Tools:modulator', None)
|
||||
(':build.mac68k.shared', None)
|
||||
(':build.mac68k.small', None)
|
||||
(':build.mac68k.small:python68Ksmall', None)
|
||||
(':build.mac68k.stand:python68K', ':Python68K')
|
||||
(':build.macppc.shared', None)
|
||||
(':build.macppc.stand', None)
|
||||
(':jack-scripts', None)
|
||||
(':mac2unix.shar', None)
|
||||
(':mkapplet', None)
|
||||
(':readmefiles:FAQ', ':Relnotes:')
|
||||
(':readmefiles:NEWS', ':Relnotes:')
|
||||
(':pystone.py', None)
|
||||
(':PythonFAT', None)
|
||||
(':build.mac68k.stand:python68Ksmall', None)
|
||||
(':Extensions:NumPy', None)
|
||||
(':Extensions:Imaging', None)
|
||||
(':Extensions:midi', None)
|
||||
(':Mac:HISTORY', ':Relnotes:')
|
||||
(':Mac:Relnotes', ':Relnotes:')
|
||||
(':readmefiles:ACKS', ':Relnotes:')
|
File diff suppressed because it is too large
Load Diff
|
@ -1,423 +0,0 @@
|
|||
"""Suite CodeWarrior Standard Suite: Standard suite events supported by the CodeWarrior IDE.
|
||||
Level 1, version 1
|
||||
|
||||
Generated from flap:Metrowerks:Metrowerks CodeWarrior:CodeWarrior IDE 2.0.1
|
||||
AETE/AEUT resource version 1/0, language 0, script 0
|
||||
"""
|
||||
|
||||
import aetools
|
||||
import MacOS
|
||||
|
||||
_code = 'CWIE'
|
||||
|
||||
class CodeWarrior_Standard_Suite:
|
||||
|
||||
_argmap_close = {
|
||||
'saving' : 'savo',
|
||||
'saving_in' : 'kfil',
|
||||
}
|
||||
|
||||
def close(self, _object, _attributes={}, **_arguments):
|
||||
"""close: Close an object
|
||||
Required argument: the object to close
|
||||
Keyword argument saving: Specifies whether or not changes should be saved before closing
|
||||
Keyword argument saving_in: the file in which to save the object
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'core'
|
||||
_subcode = 'clos'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_close)
|
||||
_arguments['----'] = _object
|
||||
|
||||
aetools.enumsubst(_arguments, 'savo', _Enum_savo)
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_count = {
|
||||
'each' : 'kocl',
|
||||
}
|
||||
|
||||
def count(self, _object, _attributes={}, **_arguments):
|
||||
"""count: Return the number of elements of a particular class within an object
|
||||
Required argument: the object whose elements are to be counted
|
||||
Keyword argument each: the class of the elements to be counted. Keyword 'each' is optional in AppleScript
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
Returns: the number of elements
|
||||
"""
|
||||
_code = 'core'
|
||||
_subcode = 'cnte'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_count)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_get = {
|
||||
'as' : 'rtyp',
|
||||
}
|
||||
|
||||
def get(self, _object, _attributes={}, **_arguments):
|
||||
"""get: Get the data for an object
|
||||
Required argument: the object whose data is to be returned
|
||||
Keyword argument as: the desired types for the data, in order of preference
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
Returns: The data from the object
|
||||
"""
|
||||
_code = 'core'
|
||||
_subcode = 'getd'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_get)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_make = {
|
||||
'new' : 'kocl',
|
||||
'at' : 'insh',
|
||||
'with_data' : 'data',
|
||||
'with_properties' : 'prdt',
|
||||
}
|
||||
|
||||
def make(self, _no_object=None, _attributes={}, **_arguments):
|
||||
"""make: Make a new element
|
||||
Keyword argument new: the class of the new element. Keyword 'new' is optional in AppleScript
|
||||
Keyword argument at: the location at which to insert the element
|
||||
Keyword argument with_data: the initial data for the element
|
||||
Keyword argument with_properties: the initial values for the properties of the element
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
Returns: to the new object(s)
|
||||
"""
|
||||
_code = 'core'
|
||||
_subcode = 'crel'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_make)
|
||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
def select(self, _object=None, _attributes={}, **_arguments):
|
||||
"""select: Select the specified object
|
||||
Required argument: the object to select
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'misc'
|
||||
_subcode = 'slct'
|
||||
|
||||
if _arguments: raise TypeError, 'No optional args expected'
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_set = {
|
||||
'to' : 'data',
|
||||
}
|
||||
|
||||
def set(self, _object, _attributes={}, **_arguments):
|
||||
"""set: Set an object's data
|
||||
Required argument: the object to change
|
||||
Keyword argument to: the new value
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'core'
|
||||
_subcode = 'setd'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_set)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
|
||||
class application(aetools.ComponentItem):
|
||||
"""application - An application program"""
|
||||
want = 'capp'
|
||||
class user_interaction(aetools.NProperty):
|
||||
"""user interaction - User interaction level"""
|
||||
which = 'inte'
|
||||
want = 'Inte'
|
||||
# element 'docu' as ['indx', 'name', 'rang']
|
||||
# element 'cwin' as ['indx', 'name', 'rang']
|
||||
# element 'Clas' as ['indx', 'name']
|
||||
|
||||
class character(aetools.ComponentItem):
|
||||
"""character - A character"""
|
||||
want = 'cha '
|
||||
class offset(aetools.NProperty):
|
||||
"""offset - offset of a text object from the beginning of the document (first char has offset 1)"""
|
||||
which = 'pOff'
|
||||
want = 'long'
|
||||
class length(aetools.NProperty):
|
||||
"""length - length in characters of this object"""
|
||||
which = 'pLen'
|
||||
want = 'long'
|
||||
|
||||
class document(aetools.ComponentItem):
|
||||
"""document - A document"""
|
||||
want = 'docu'
|
||||
class file(aetools.NProperty):
|
||||
"""file - The file of the document"""
|
||||
which = 'file'
|
||||
want = 'fss '
|
||||
class index(aetools.NProperty):
|
||||
"""index - the number of the document"""
|
||||
which = 'pidx'
|
||||
want = 'long'
|
||||
class mode(aetools.NProperty):
|
||||
"""mode - The documentÕs open mode"""
|
||||
which = 'Mode'
|
||||
want = 'Mode'
|
||||
class modified(aetools.NProperty):
|
||||
"""modified - Has the document been modified since the last save?"""
|
||||
which = 'imod'
|
||||
want = 'bool'
|
||||
class name(aetools.NProperty):
|
||||
"""name - the title of the document"""
|
||||
which = 'pnam'
|
||||
want = 'itxt'
|
||||
class selection(aetools.NProperty):
|
||||
"""selection - the selection visible to the user"""
|
||||
which = 'sele'
|
||||
want = 'csel'
|
||||
class window(aetools.NProperty):
|
||||
"""window - The window of this document."""
|
||||
which = 'cwin'
|
||||
want = 'cwin'
|
||||
# element 'cha ' as ['indx', 'rele', 'rang', 'test']
|
||||
# element 'cins' as ['rele']
|
||||
# element 'clin' as ['indx', 'rang', 'rele']
|
||||
# element 'ctxt' as ['rang']
|
||||
|
||||
documents = document
|
||||
|
||||
class file(aetools.ComponentItem):
|
||||
"""file - A file"""
|
||||
want = 'file'
|
||||
|
||||
files = file
|
||||
|
||||
class insertion_point(aetools.ComponentItem):
|
||||
"""insertion point - An insertion location between two objects"""
|
||||
want = 'cins'
|
||||
# repeated property length length of text object (in characters)
|
||||
# repeated property offset offset of a text object from the beginning of the document (first char has offset 1)
|
||||
|
||||
class line(aetools.ComponentItem):
|
||||
"""line - Lines of text"""
|
||||
want = 'clin'
|
||||
# repeated property index index of a line object from the beginning of the document (first line has index 1)
|
||||
# repeated property offset offset (in characters) of a line object from the beginning of the document
|
||||
# repeated property length length in characters of this object
|
||||
# element 'cha ' as ['indx', 'rang', 'rele']
|
||||
|
||||
lines = line
|
||||
|
||||
class selection_2d_object(aetools.ComponentItem):
|
||||
"""selection-object - the selection visible to the user"""
|
||||
want = 'csel'
|
||||
class contents(aetools.NProperty):
|
||||
"""contents - the contents of the selection"""
|
||||
which = 'pcnt'
|
||||
want = 'type'
|
||||
# repeated property length length of text object (in characters)
|
||||
# repeated property offset offset of a text object from the beginning of the document (first char has offset 1)
|
||||
# element 'cha ' as ['indx', 'rele', 'rang', 'test']
|
||||
# element 'clin' as ['indx', 'rang', 'rele']
|
||||
# element 'ctxt' as ['rang']
|
||||
|
||||
class text(aetools.ComponentItem):
|
||||
"""text - Text"""
|
||||
want = 'ctxt'
|
||||
# repeated property length length of text object (in characters)
|
||||
# repeated property offset offset of a text object from the beginning of the document (first char has offset 1)
|
||||
# element 'cha ' as ['indx', 'rele', 'rang']
|
||||
# element 'cins' as ['rele']
|
||||
# element 'clin' as ['indx', 'rang', 'rele']
|
||||
# element 'ctxt' as ['rang']
|
||||
|
||||
class window(aetools.ComponentItem):
|
||||
"""window - A window"""
|
||||
want = 'cwin'
|
||||
# repeated property name the title of the window
|
||||
# repeated property index the number of the window
|
||||
class bounds(aetools.NProperty):
|
||||
"""bounds - the boundary rectangle for the window"""
|
||||
which = 'pbnd'
|
||||
want = 'qdrt'
|
||||
class document(aetools.NProperty):
|
||||
"""document - the document object that owns this window"""
|
||||
which = 'docu'
|
||||
want = 'docu'
|
||||
class position(aetools.NProperty):
|
||||
"""position - upper left coordinates of window"""
|
||||
which = 'ppos'
|
||||
want = 'QDpt'
|
||||
class visible(aetools.NProperty):
|
||||
"""visible - is the window visible?"""
|
||||
which = 'pvis'
|
||||
want = 'bool'
|
||||
class zoomed(aetools.NProperty):
|
||||
"""zoomed - Is the window zoomed?"""
|
||||
which = 'pzum'
|
||||
want = 'bool'
|
||||
|
||||
windows = window
|
||||
# XXXX application element 'Clas' not found!!
|
||||
application._propdict = {
|
||||
'user_interaction' : user_interaction,
|
||||
}
|
||||
application._elemdict = {
|
||||
'document' : document,
|
||||
'window' : window,
|
||||
}
|
||||
character._propdict = {
|
||||
'offset' : offset,
|
||||
'length' : length,
|
||||
}
|
||||
character._elemdict = {
|
||||
}
|
||||
document._propdict = {
|
||||
'file' : file,
|
||||
'index' : index,
|
||||
'mode' : mode,
|
||||
'modified' : modified,
|
||||
'name' : name,
|
||||
'selection' : selection,
|
||||
'window' : window,
|
||||
}
|
||||
document._elemdict = {
|
||||
'character' : character,
|
||||
'insertion_point' : insertion_point,
|
||||
'line' : line,
|
||||
'text' : text,
|
||||
}
|
||||
file._propdict = {
|
||||
}
|
||||
file._elemdict = {
|
||||
}
|
||||
insertion_point._propdict = {
|
||||
'length' : length,
|
||||
'offset' : offset,
|
||||
}
|
||||
insertion_point._elemdict = {
|
||||
}
|
||||
line._propdict = {
|
||||
'index' : index,
|
||||
'offset' : offset,
|
||||
'length' : length,
|
||||
}
|
||||
line._elemdict = {
|
||||
'character' : character,
|
||||
}
|
||||
selection_2d_object._propdict = {
|
||||
'contents' : contents,
|
||||
'length' : length,
|
||||
'offset' : offset,
|
||||
}
|
||||
selection_2d_object._elemdict = {
|
||||
'character' : character,
|
||||
'line' : line,
|
||||
'text' : text,
|
||||
}
|
||||
text._propdict = {
|
||||
'length' : length,
|
||||
'offset' : offset,
|
||||
}
|
||||
text._elemdict = {
|
||||
'character' : character,
|
||||
'insertion_point' : insertion_point,
|
||||
'line' : line,
|
||||
'text' : text,
|
||||
}
|
||||
window._propdict = {
|
||||
'name' : name,
|
||||
'index' : index,
|
||||
'bounds' : bounds,
|
||||
'document' : document,
|
||||
'position' : position,
|
||||
'visible' : visible,
|
||||
'zoomed' : zoomed,
|
||||
}
|
||||
window._elemdict = {
|
||||
}
|
||||
# XXXX enum savo not found!!
|
||||
|
||||
#
|
||||
# Indices of types declared in this module
|
||||
#
|
||||
_classdeclarations = {
|
||||
'docu' : document,
|
||||
'cins' : insertion_point,
|
||||
'capp' : application,
|
||||
'ctxt' : text,
|
||||
'csel' : selection_2d_object,
|
||||
'clin' : line,
|
||||
'file' : file,
|
||||
'cwin' : window,
|
||||
'cha ' : character,
|
||||
}
|
||||
|
||||
_propdeclarations = {
|
||||
'pzum' : zoomed,
|
||||
'pOff' : offset,
|
||||
'pLen' : length,
|
||||
'pnam' : name,
|
||||
'file' : file,
|
||||
'pcnt' : contents,
|
||||
'cwin' : window,
|
||||
'ppos' : position,
|
||||
'pidx' : index,
|
||||
'docu' : document,
|
||||
'pvis' : visible,
|
||||
'sele' : selection,
|
||||
'pbnd' : bounds,
|
||||
'imod' : modified,
|
||||
'Mode' : mode,
|
||||
'inte' : user_interaction,
|
||||
}
|
||||
|
||||
_compdeclarations = {
|
||||
}
|
||||
|
||||
_enumdeclarations = {
|
||||
}
|
|
@ -1,326 +0,0 @@
|
|||
"""Suite 7.0 Finder Suite: This is the original Finder suite. These events will be supported in the future, but the syntax may be changed in a future Finder release.
|
||||
Level 1, version 1
|
||||
|
||||
Generated from flap:System Folder:Finder
|
||||
AETE/AEUT resource version 0/149, language 0, script 0
|
||||
"""
|
||||
# XXXX Hand edited to change the classname
|
||||
|
||||
import aetools
|
||||
import MacOS
|
||||
|
||||
_code = 'FNDR'
|
||||
|
||||
class Finder_7_0_Suite:
|
||||
|
||||
def open_about_box(self, _no_object=None, _attributes={}, **_arguments):
|
||||
"""open about box: Open the 'About This Mac' window
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'aevt'
|
||||
_subcode = 'abou'
|
||||
|
||||
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.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_copy_to = {
|
||||
'_from' : 'fsel',
|
||||
}
|
||||
|
||||
def copy_to(self, _object, _attributes={}, **_arguments):
|
||||
"""copy to: Copies one or more items into a folder
|
||||
Required argument: Alias for folder into which the items are copied
|
||||
Keyword argument _from: List of aliases for items to be copied
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'FNDR'
|
||||
_subcode = 'drag'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_copy_to)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_duplicate = {
|
||||
'items' : 'fsel',
|
||||
}
|
||||
|
||||
def duplicate(self, _object, _attributes={}, **_arguments):
|
||||
"""duplicate: Duplicate a set of items in a folder
|
||||
Required argument: Alias for folder containing the items
|
||||
Keyword argument items: List of aliases for items in the folder
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'FNDR'
|
||||
_subcode = 'sdup'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_duplicate)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
def empty_trash(self, _no_object=None, _attributes={}, **_arguments):
|
||||
"""empty trash: Empties the trash
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'FNDR'
|
||||
_subcode = 'empt'
|
||||
|
||||
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.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_make_aliases_for = {
|
||||
'items' : 'fsel',
|
||||
}
|
||||
|
||||
def make_aliases_for(self, _object, _attributes={}, **_arguments):
|
||||
"""make aliases for: Make aliases to items from a single folder
|
||||
Required argument: Alias for folder containing the items
|
||||
Keyword argument items: List of aliases for items in folder
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'FNDR'
|
||||
_subcode = 'sali'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_make_aliases_for)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_move_to = {
|
||||
'_from' : 'fsel',
|
||||
}
|
||||
|
||||
def move_to(self, _object, _attributes={}, **_arguments):
|
||||
"""move to: Move one or more items into a folder
|
||||
Required argument: Alias for destination folder
|
||||
Keyword argument _from: List of aliases for items to be moved
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'FNDR'
|
||||
_subcode = 'move'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_move_to)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
def sleep(self, _no_object=None, _attributes={}, **_arguments):
|
||||
"""sleep: Put portable into sleep mode
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'FNDR'
|
||||
_subcode = 'slep'
|
||||
|
||||
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.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
def shut_down(self, _no_object=None, _attributes={}, **_arguments):
|
||||
"""shut down: Shuts down the Macintosh if all applications can quit
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'FNDR'
|
||||
_subcode = 'shut'
|
||||
|
||||
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.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_open = {
|
||||
'items' : 'fsel',
|
||||
}
|
||||
|
||||
def open(self, _object, _attributes={}, **_arguments):
|
||||
"""open: Open folders, files, or applications from a given folder
|
||||
Required argument: Alias for folder containing the items
|
||||
Keyword argument items: List of aliases for items in the folder
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'FNDR'
|
||||
_subcode = 'sope'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_open)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap__print = {
|
||||
'items' : 'fsel',
|
||||
}
|
||||
|
||||
def _print(self, _object, _attributes={}, **_arguments):
|
||||
"""print: Print items from a given folder
|
||||
Required argument: Alias for folder containing the items
|
||||
Keyword argument items: List of aliases for items in folder
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'FNDR'
|
||||
_subcode = 'spri'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap__print)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_put_away = {
|
||||
'items' : 'fsel',
|
||||
}
|
||||
|
||||
def put_away(self, _object, _attributes={}, **_arguments):
|
||||
"""put away: Put away items from a given folder
|
||||
Required argument: Alias for folder containing the items
|
||||
Keyword argument items: List of aliases to items in folder
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
Returns: undocumented, typecode 'alis'
|
||||
"""
|
||||
_code = 'FNDR'
|
||||
_subcode = 'sput'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_put_away)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
def restart(self, _no_object=None, _attributes={}, **_arguments):
|
||||
"""restart: Restart the Macintosh
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'FNDR'
|
||||
_subcode = 'rest'
|
||||
|
||||
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.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_select = {
|
||||
'items' : 'fsel',
|
||||
}
|
||||
|
||||
def select(self, _object, _attributes={}, **_arguments):
|
||||
"""select: Select items in a folder
|
||||
Required argument: Alias for folder containing the items
|
||||
Keyword argument items: List of aliases for items in folder
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'FNDR'
|
||||
_subcode = 'srev'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_select)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
|
||||
#
|
||||
# Indices of types declared in this module
|
||||
#
|
||||
_classdeclarations = {
|
||||
}
|
||||
|
||||
_propdeclarations = {
|
||||
}
|
||||
|
||||
_compdeclarations = {
|
||||
}
|
||||
|
||||
_enumdeclarations = {
|
||||
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -1,411 +0,0 @@
|
|||
"""Suite QuickDraw Graphics Suite: A set of basic classes for graphics
|
||||
Level 1, version 1
|
||||
|
||||
Generated from flap:System Folder:Extensions:Scripting Additions:Dialects:English Dialect
|
||||
AETE/AEUT resource version 1/0, language 0, script 0
|
||||
"""
|
||||
|
||||
import aetools
|
||||
import MacOS
|
||||
|
||||
_code = 'qdrw'
|
||||
|
||||
class QuickDraw_Graphics_Suite:
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class arc(aetools.ComponentItem):
|
||||
"""arc - An arc"""
|
||||
want = 'carc'
|
||||
class arc_angle(aetools.NProperty):
|
||||
"""arc angle - Angle of the arc in degrees"""
|
||||
which = 'parc'
|
||||
want = 'fixd'
|
||||
class bounds(aetools.NProperty):
|
||||
"""bounds - the smallest rectangle that contains the entire arc"""
|
||||
which = 'pbnd'
|
||||
want = 'qdrt'
|
||||
class _class(aetools.NProperty):
|
||||
"""class - the class"""
|
||||
which = 'pcls'
|
||||
want = 'type'
|
||||
class definition_rect(aetools.NProperty):
|
||||
"""definition rect - the rectangle that contains the circle or oval used to define the arc"""
|
||||
which = 'pdrt'
|
||||
want = 'qdrt'
|
||||
class fill_color(aetools.NProperty):
|
||||
"""fill color - the fill color"""
|
||||
which = 'flcl'
|
||||
want = 'cRGB'
|
||||
class fill_pattern(aetools.NProperty):
|
||||
"""fill pattern - the fill pattern"""
|
||||
which = 'flpt'
|
||||
want = 'cpix'
|
||||
class pen_color(aetools.NProperty):
|
||||
"""pen color - the pen color"""
|
||||
which = 'ppcl'
|
||||
want = 'cRGB'
|
||||
class pen_pattern(aetools.NProperty):
|
||||
"""pen pattern - the pen pattern"""
|
||||
which = 'pppa'
|
||||
want = 'cpix'
|
||||
class pen_width(aetools.NProperty):
|
||||
"""pen width - the pen width"""
|
||||
which = 'ppwd'
|
||||
want = 'shor'
|
||||
class start_angle(aetools.NProperty):
|
||||
"""start angle - the angle that defines the start of the arc, in degrees"""
|
||||
which = 'pang'
|
||||
want = 'fixd'
|
||||
class transfer_mode(aetools.NProperty):
|
||||
"""transfer mode - the transfer mode"""
|
||||
which = 'pptm'
|
||||
want = 'tran'
|
||||
|
||||
arcs = arc
|
||||
|
||||
class drawing_area(aetools.ComponentItem):
|
||||
"""drawing area - Container for graphics and supporting information"""
|
||||
want = 'cdrw'
|
||||
class background_color(aetools.NProperty):
|
||||
"""background color - the color used to fill in unoccupied areas"""
|
||||
which = 'pbcl'
|
||||
want = 'cRGB'
|
||||
class background_pattern(aetools.NProperty):
|
||||
"""background pattern - the pattern used to fill in unoccupied areas"""
|
||||
which = 'pbpt'
|
||||
want = 'cpix'
|
||||
class color_table(aetools.NProperty):
|
||||
"""color table - the color table"""
|
||||
which = 'cltb'
|
||||
want = 'clrt'
|
||||
class ordering(aetools.NProperty):
|
||||
"""ordering - the ordered list of graphic objects in the drawing area"""
|
||||
which = 'gobs'
|
||||
want = 'obj '
|
||||
class name(aetools.NProperty):
|
||||
"""name - the name"""
|
||||
which = 'pnam'
|
||||
want = 'itxt'
|
||||
class default_location(aetools.NProperty):
|
||||
"""default location - the default location of each new graphic object"""
|
||||
which = 'pnel'
|
||||
want = 'QDpt'
|
||||
class pixel_depth(aetools.NProperty):
|
||||
"""pixel depth - Bits per pixel"""
|
||||
which = 'pdpt'
|
||||
want = 'shor'
|
||||
class writing_code(aetools.NProperty):
|
||||
"""writing code - the script system and language of text objects in the drawing area"""
|
||||
which = 'psct'
|
||||
want = 'intl'
|
||||
class text_color(aetools.NProperty):
|
||||
"""text color - the default color for text objects"""
|
||||
which = 'ptxc'
|
||||
want = 'cRGB'
|
||||
class default_font(aetools.NProperty):
|
||||
"""default font - the name of the default font for text objects"""
|
||||
which = 'ptxf'
|
||||
want = 'itxt'
|
||||
class default_size(aetools.NProperty):
|
||||
"""default size - the default size for text objects"""
|
||||
which = 'ptps'
|
||||
want = 'fixd'
|
||||
class style(aetools.NProperty):
|
||||
"""style - the default text style for text objects"""
|
||||
which = 'txst'
|
||||
want = 'tsty'
|
||||
class update_on_change(aetools.NProperty):
|
||||
"""update on change - Redraw after each change?"""
|
||||
which = 'pupd'
|
||||
want = 'bool'
|
||||
|
||||
drawing_areas = drawing_area
|
||||
|
||||
class graphic_line(aetools.ComponentItem):
|
||||
"""graphic line - A graphic line"""
|
||||
want = 'glin'
|
||||
class dash_style(aetools.NProperty):
|
||||
"""dash style - the dash style"""
|
||||
which = 'pdst'
|
||||
want = 'tdas'
|
||||
class end_point(aetools.NProperty):
|
||||
"""end point - the ending point of the line"""
|
||||
which = 'pend'
|
||||
want = 'QDpt'
|
||||
class arrow_style(aetools.NProperty):
|
||||
"""arrow style - the arrow style"""
|
||||
which = 'arro'
|
||||
want = 'arro'
|
||||
class start_point(aetools.NProperty):
|
||||
"""start point - the starting point of the line"""
|
||||
which = 'pstp'
|
||||
want = 'QDpt'
|
||||
|
||||
graphic_lines = graphic_line
|
||||
|
||||
class graphic_object(aetools.ComponentItem):
|
||||
"""graphic object - A graphic object"""
|
||||
want = 'cgob'
|
||||
|
||||
graphic_objects = graphic_object
|
||||
|
||||
class graphic_shape(aetools.ComponentItem):
|
||||
"""graphic shape - A graphic shape"""
|
||||
want = 'cgsh'
|
||||
|
||||
graphic_shapes = graphic_shape
|
||||
|
||||
class graphic_text(aetools.ComponentItem):
|
||||
"""graphic text - A series of characters within a drawing area"""
|
||||
want = 'cgtx'
|
||||
class color(aetools.NProperty):
|
||||
"""color - the color of the first character"""
|
||||
which = 'colr'
|
||||
want = 'cRGB'
|
||||
class font(aetools.NProperty):
|
||||
"""font - the name of the font of the first character"""
|
||||
which = 'font'
|
||||
want = 'ctxt'
|
||||
class size(aetools.NProperty):
|
||||
"""size - the size in points of the first character"""
|
||||
which = 'ptsz'
|
||||
want = 'fixd'
|
||||
class uniform_styles(aetools.NProperty):
|
||||
"""uniform styles - the text styles that are uniform throughout the text"""
|
||||
which = 'ustl'
|
||||
want = 'tsty'
|
||||
|
||||
class graphic_group(aetools.ComponentItem):
|
||||
"""graphic group - Group of graphics"""
|
||||
want = 'cpic'
|
||||
|
||||
graphic_groups = graphic_group
|
||||
|
||||
class oval(aetools.ComponentItem):
|
||||
"""oval - An oval"""
|
||||
want = 'covl'
|
||||
|
||||
ovals = oval
|
||||
|
||||
class pixel(aetools.ComponentItem):
|
||||
"""pixel - A pixel"""
|
||||
want = 'cpxl'
|
||||
# repeated property color the color
|
||||
|
||||
pixels = pixel
|
||||
|
||||
class pixel_map(aetools.ComponentItem):
|
||||
"""pixel map - A pixel map"""
|
||||
want = 'cpix'
|
||||
|
||||
pixel_maps = pixel_map
|
||||
|
||||
class polygon(aetools.ComponentItem):
|
||||
"""polygon - A polygon"""
|
||||
want = 'cpgn'
|
||||
class point_list(aetools.NProperty):
|
||||
"""point list - the list of points that define the polygon"""
|
||||
which = 'ptlt'
|
||||
want = 'QDpt'
|
||||
|
||||
polygons = polygon
|
||||
|
||||
class rectangle(aetools.ComponentItem):
|
||||
"""rectangle - A rectangle"""
|
||||
want = 'crec'
|
||||
|
||||
rectangles = rectangle
|
||||
|
||||
class rounded_rectangle(aetools.ComponentItem):
|
||||
"""rounded rectangle - A rounded rectangle"""
|
||||
want = 'crrc'
|
||||
class corner_curve_height(aetools.NProperty):
|
||||
"""corner curve height - the height of the oval used to define the shape of the rounded corners"""
|
||||
which = 'pchd'
|
||||
want = 'shor'
|
||||
class corner_curve_width(aetools.NProperty):
|
||||
"""corner curve width - the width of the oval used to define the shape of the rounded corners"""
|
||||
which = 'pcwd'
|
||||
want = 'shor'
|
||||
|
||||
rounded_rectangles = rounded_rectangle
|
||||
arc._propdict = {
|
||||
'arc_angle' : arc_angle,
|
||||
'bounds' : bounds,
|
||||
'_class' : _class,
|
||||
'definition_rect' : definition_rect,
|
||||
'fill_color' : fill_color,
|
||||
'fill_pattern' : fill_pattern,
|
||||
'pen_color' : pen_color,
|
||||
'pen_pattern' : pen_pattern,
|
||||
'pen_width' : pen_width,
|
||||
'start_angle' : start_angle,
|
||||
'transfer_mode' : transfer_mode,
|
||||
}
|
||||
arc._elemdict = {
|
||||
}
|
||||
drawing_area._propdict = {
|
||||
'background_color' : background_color,
|
||||
'background_pattern' : background_pattern,
|
||||
'color_table' : color_table,
|
||||
'ordering' : ordering,
|
||||
'name' : name,
|
||||
'default_location' : default_location,
|
||||
'pixel_depth' : pixel_depth,
|
||||
'writing_code' : writing_code,
|
||||
'text_color' : text_color,
|
||||
'default_font' : default_font,
|
||||
'default_size' : default_size,
|
||||
'style' : style,
|
||||
'update_on_change' : update_on_change,
|
||||
}
|
||||
drawing_area._elemdict = {
|
||||
}
|
||||
graphic_line._propdict = {
|
||||
'dash_style' : dash_style,
|
||||
'end_point' : end_point,
|
||||
'arrow_style' : arrow_style,
|
||||
'start_point' : start_point,
|
||||
}
|
||||
graphic_line._elemdict = {
|
||||
}
|
||||
graphic_object._propdict = {
|
||||
}
|
||||
graphic_object._elemdict = {
|
||||
}
|
||||
graphic_shape._propdict = {
|
||||
}
|
||||
graphic_shape._elemdict = {
|
||||
}
|
||||
graphic_text._propdict = {
|
||||
'color' : color,
|
||||
'font' : font,
|
||||
'size' : size,
|
||||
'uniform_styles' : uniform_styles,
|
||||
}
|
||||
graphic_text._elemdict = {
|
||||
}
|
||||
graphic_group._propdict = {
|
||||
}
|
||||
graphic_group._elemdict = {
|
||||
}
|
||||
oval._propdict = {
|
||||
}
|
||||
oval._elemdict = {
|
||||
}
|
||||
pixel._propdict = {
|
||||
'color' : color,
|
||||
}
|
||||
pixel._elemdict = {
|
||||
}
|
||||
pixel_map._propdict = {
|
||||
}
|
||||
pixel_map._elemdict = {
|
||||
}
|
||||
polygon._propdict = {
|
||||
'point_list' : point_list,
|
||||
}
|
||||
polygon._elemdict = {
|
||||
}
|
||||
rectangle._propdict = {
|
||||
}
|
||||
rectangle._elemdict = {
|
||||
}
|
||||
rounded_rectangle._propdict = {
|
||||
'corner_curve_height' : corner_curve_height,
|
||||
'corner_curve_width' : corner_curve_width,
|
||||
}
|
||||
rounded_rectangle._elemdict = {
|
||||
}
|
||||
_Enum_tran = {
|
||||
'copy_pixels' : 'cpy ', #
|
||||
'not_copy_pixels' : 'ncpy', #
|
||||
'or_pixels' : 'or ', #
|
||||
'not_or_pixels' : 'ntor', #
|
||||
'bic_pixels' : 'bic ', #
|
||||
'not_bic_pixels' : 'nbic', #
|
||||
'xor_pixels' : 'xor ', #
|
||||
'not_xor_pixels' : 'nxor', #
|
||||
'add_over_pixels' : 'addo', #
|
||||
'add_pin_pixels' : 'addp', #
|
||||
'sub_over_pixels' : 'subo', #
|
||||
'sub_pin_pixels' : 'subp', #
|
||||
'ad_max_pixels' : 'admx', #
|
||||
'ad_min_pixels' : 'admn', #
|
||||
'blend_pixels' : 'blnd', #
|
||||
}
|
||||
|
||||
_Enum_arro = {
|
||||
'no_arrow' : 'arno', # No arrow on line
|
||||
'arrow_at_start' : 'arst', # Arrow at start of line
|
||||
'arrow_at_end' : 'aren', # Arrow at end of line
|
||||
'arrow_at_both_ends' : 'arbo', # Arrow at both the start and the end of the line
|
||||
}
|
||||
|
||||
|
||||
#
|
||||
# Indices of types declared in this module
|
||||
#
|
||||
_classdeclarations = {
|
||||
'crec' : rectangle,
|
||||
'cpix' : pixel_map,
|
||||
'carc' : arc,
|
||||
'cgsh' : graphic_shape,
|
||||
'cpxl' : pixel,
|
||||
'crrc' : rounded_rectangle,
|
||||
'cpgn' : polygon,
|
||||
'cdrw' : drawing_area,
|
||||
'cgob' : graphic_object,
|
||||
'glin' : graphic_line,
|
||||
'cgtx' : graphic_text,
|
||||
'covl' : oval,
|
||||
'cpic' : graphic_group,
|
||||
}
|
||||
|
||||
_propdeclarations = {
|
||||
'pend' : end_point,
|
||||
'pupd' : update_on_change,
|
||||
'pstp' : start_point,
|
||||
'pdrt' : definition_rect,
|
||||
'pnam' : name,
|
||||
'pbcl' : background_color,
|
||||
'pptm' : transfer_mode,
|
||||
'pnel' : default_location,
|
||||
'pdpt' : pixel_depth,
|
||||
'gobs' : ordering,
|
||||
'ustl' : uniform_styles,
|
||||
'ptlt' : point_list,
|
||||
'pdst' : dash_style,
|
||||
'psct' : writing_code,
|
||||
'txst' : style,
|
||||
'font' : font,
|
||||
'pchd' : corner_curve_height,
|
||||
'pcls' : _class,
|
||||
'ppwd' : pen_width,
|
||||
'ptps' : default_size,
|
||||
'ppcl' : pen_color,
|
||||
'ptxf' : default_font,
|
||||
'pcwd' : corner_curve_width,
|
||||
'ptxc' : text_color,
|
||||
'cltb' : color_table,
|
||||
'pppa' : pen_pattern,
|
||||
'pang' : start_angle,
|
||||
'flpt' : fill_pattern,
|
||||
'colr' : color,
|
||||
'arro' : arrow_style,
|
||||
'pbnd' : bounds,
|
||||
'ptsz' : size,
|
||||
'parc' : arc_angle,
|
||||
'flcl' : fill_color,
|
||||
'pbpt' : background_pattern,
|
||||
}
|
||||
|
||||
_compdeclarations = {
|
||||
}
|
||||
|
||||
_enumdeclarations = {
|
||||
'tran' : _Enum_tran,
|
||||
'arro' : _Enum_arro,
|
||||
}
|
|
@ -1,71 +0,0 @@
|
|||
"""Suite QuickDraw Graphics Supplemental Suite: Defines transformations of graphic objects
|
||||
Level 1, version 1
|
||||
|
||||
Generated from flap:System Folder:Extensions:Scripting Additions:Dialects:English Dialect
|
||||
AETE/AEUT resource version 1/0, language 0, script 0
|
||||
"""
|
||||
|
||||
import aetools
|
||||
import MacOS
|
||||
|
||||
_code = 'qdsp'
|
||||
|
||||
class QuickDraw_Graphics_Supplemental_Suite:
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class drawing_area(aetools.ComponentItem):
|
||||
"""drawing area - Container for graphics and supporting information"""
|
||||
want = 'cdrw'
|
||||
class rotation(aetools.NProperty):
|
||||
"""rotation - the default rotation for objects in the drawing area"""
|
||||
which = 'prot'
|
||||
want = 'trot'
|
||||
class scale(aetools.NProperty):
|
||||
"""scale - the default scaling for objects in the drawing area"""
|
||||
which = 'pscl'
|
||||
want = 'fixd'
|
||||
class translation(aetools.NProperty):
|
||||
"""translation - the default repositioning for objects in the drawing area"""
|
||||
which = 'ptrs'
|
||||
want = 'QDpt'
|
||||
|
||||
drawing_areas = drawing_area
|
||||
|
||||
class graphic_group(aetools.ComponentItem):
|
||||
"""graphic group - Group of graphics"""
|
||||
want = 'cpic'
|
||||
|
||||
graphic_groups = graphic_group
|
||||
drawing_area._propdict = {
|
||||
'rotation' : rotation,
|
||||
'scale' : scale,
|
||||
'translation' : translation,
|
||||
}
|
||||
drawing_area._elemdict = {
|
||||
}
|
||||
graphic_group._propdict = {
|
||||
}
|
||||
graphic_group._elemdict = {
|
||||
}
|
||||
|
||||
#
|
||||
# Indices of types declared in this module
|
||||
#
|
||||
_classdeclarations = {
|
||||
'cpic' : graphic_group,
|
||||
'cdrw' : drawing_area,
|
||||
}
|
||||
|
||||
_propdeclarations = {
|
||||
'prot' : rotation,
|
||||
'pscl' : scale,
|
||||
'ptrs' : translation,
|
||||
}
|
||||
|
||||
_compdeclarations = {
|
||||
}
|
||||
|
||||
_enumdeclarations = {
|
||||
}
|
|
@ -1,107 +0,0 @@
|
|||
"""Suite Required Suite: Terms that every application should support
|
||||
Level 1, version 1
|
||||
|
||||
Generated from flap:System Folder:Extensions:Scripting Additions:Dialects:English Dialect
|
||||
AETE/AEUT resource version 1/0, language 0, script 0
|
||||
"""
|
||||
|
||||
import aetools
|
||||
import MacOS
|
||||
|
||||
_code = 'reqd'
|
||||
|
||||
class Required_Suite:
|
||||
|
||||
def open(self, _object, _attributes={}, **_arguments):
|
||||
"""open: Open the specified object(s)
|
||||
Required argument: list of objects to open
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'aevt'
|
||||
_subcode = 'odoc'
|
||||
|
||||
if _arguments: raise TypeError, 'No optional args expected'
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
def _print(self, _object, _attributes={}, **_arguments):
|
||||
"""print: Print the specified object(s)
|
||||
Required argument: list of objects to print
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'aevt'
|
||||
_subcode = 'pdoc'
|
||||
|
||||
if _arguments: raise TypeError, 'No optional args expected'
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
def quit(self, _no_object=None, _attributes={}, **_arguments):
|
||||
"""quit: Quit 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.has_key('errn'):
|
||||
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: Sent to an application when it is double-clicked
|
||||
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.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
|
||||
#
|
||||
# Indices of types declared in this module
|
||||
#
|
||||
_classdeclarations = {
|
||||
}
|
||||
|
||||
_propdeclarations = {
|
||||
}
|
||||
|
||||
_compdeclarations = {
|
||||
}
|
||||
|
||||
_enumdeclarations = {
|
||||
}
|
|
@ -1,713 +0,0 @@
|
|||
"""Suite Standard Suite: Common terms for most applications
|
||||
Level 1, version 1
|
||||
|
||||
Generated from flap:System Folder:Extensions:Scripting Additions:Dialects:English Dialect
|
||||
AETE/AEUT resource version 1/0, language 0, script 0
|
||||
"""
|
||||
|
||||
import aetools
|
||||
import MacOS
|
||||
|
||||
_code = 'core'
|
||||
|
||||
class Standard_Suite:
|
||||
|
||||
_argmap_class_info = {
|
||||
'_in' : 'wrcd',
|
||||
}
|
||||
|
||||
def class_info(self, _object=None, _attributes={}, **_arguments):
|
||||
"""class info: Get information about an object class
|
||||
Required argument: the object class about which information is requested
|
||||
Keyword argument _in: the human language and script system in which to return information
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
Returns: a record containing the objectÕs properties and elements
|
||||
"""
|
||||
_code = 'core'
|
||||
_subcode = 'qobj'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_class_info)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_close = {
|
||||
'saving' : 'savo',
|
||||
'saving_in' : 'kfil',
|
||||
}
|
||||
|
||||
def close(self, _object, _attributes={}, **_arguments):
|
||||
"""close: Close an object
|
||||
Required argument: the object to close
|
||||
Keyword argument saving: specifies whether changes should be saved before closing
|
||||
Keyword argument saving_in: the file in which to save the object
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'core'
|
||||
_subcode = 'clos'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_close)
|
||||
_arguments['----'] = _object
|
||||
|
||||
aetools.enumsubst(_arguments, 'savo', _Enum_savo)
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_count = {
|
||||
'each' : 'kocl',
|
||||
}
|
||||
|
||||
def count(self, _object, _attributes={}, **_arguments):
|
||||
"""count: Return the number of elements of a particular class within an object
|
||||
Required argument: the object whose elements are to be counted
|
||||
Keyword argument each: the class of the elements to be counted.
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
Returns: the number of elements
|
||||
"""
|
||||
_code = 'core'
|
||||
_subcode = 'cnte'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_count)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_data_size = {
|
||||
'as' : 'rtyp',
|
||||
}
|
||||
|
||||
def data_size(self, _object, _attributes={}, **_arguments):
|
||||
"""data size: Return the size in bytes of an object
|
||||
Required argument: the object whose data size is to be returned
|
||||
Keyword argument as: the data type for which the size is calculated
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
Returns: the size of the object in bytes
|
||||
"""
|
||||
_code = 'core'
|
||||
_subcode = 'dsiz'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_data_size)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
def delete(self, _object, _attributes={}, **_arguments):
|
||||
"""delete: Delete an element from an object
|
||||
Required argument: the element to delete
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'core'
|
||||
_subcode = 'delo'
|
||||
|
||||
if _arguments: raise TypeError, 'No optional args expected'
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_duplicate = {
|
||||
'to' : 'insh',
|
||||
}
|
||||
|
||||
def duplicate(self, _object, _attributes={}, **_arguments):
|
||||
"""duplicate: Duplicate object(s)
|
||||
Required argument: the object(s) to duplicate
|
||||
Keyword argument to: the new location for the object(s)
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
Returns: to the duplicated object(s)
|
||||
"""
|
||||
_code = 'core'
|
||||
_subcode = 'clon'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_duplicate)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_event_info = {
|
||||
'_in' : 'wrcd',
|
||||
}
|
||||
|
||||
def event_info(self, _object, _attributes={}, **_arguments):
|
||||
"""event info: Get information about the Apple events in a suite
|
||||
Required argument: the event class of the Apple events for which to return information
|
||||
Keyword argument _in: the human language and script system in which to return information
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
Returns: a record containing the events and their parameters
|
||||
"""
|
||||
_code = 'core'
|
||||
_subcode = 'gtei'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_event_info)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
def exists(self, _object, _attributes={}, **_arguments):
|
||||
"""exists: Verify if an object exists
|
||||
Required argument: the object in question
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
Returns: true if it exists, false if not
|
||||
"""
|
||||
_code = 'core'
|
||||
_subcode = 'doex'
|
||||
|
||||
if _arguments: raise TypeError, 'No optional args expected'
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_make = {
|
||||
'new' : 'kocl',
|
||||
'at' : 'insh',
|
||||
'with_data' : 'data',
|
||||
'with_properties' : 'prdt',
|
||||
}
|
||||
|
||||
def make(self, _no_object=None, _attributes={}, **_arguments):
|
||||
"""make: Make a new element
|
||||
Keyword argument new: the class of the new element.
|
||||
Keyword argument at: the location at which to insert the element
|
||||
Keyword argument with_data: the initial data for the element
|
||||
Keyword argument with_properties: the initial values for the properties of the element
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
Returns: to the new object(s)
|
||||
"""
|
||||
_code = 'core'
|
||||
_subcode = 'crel'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_make)
|
||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_move = {
|
||||
'to' : 'insh',
|
||||
}
|
||||
|
||||
def move(self, _object, _attributes={}, **_arguments):
|
||||
"""move: Move object(s) to a new location
|
||||
Required argument: the object(s) to move
|
||||
Keyword argument to: the new location for the object(s)
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
Returns: to the object(s) after they have been moved
|
||||
"""
|
||||
_code = 'core'
|
||||
_subcode = 'move'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_move)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
def open(self, _object, _attributes={}, **_arguments):
|
||||
"""open: Open the specified object(s)
|
||||
Required argument: list of objects to open
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'aevt'
|
||||
_subcode = 'odoc'
|
||||
|
||||
if _arguments: raise TypeError, 'No optional args expected'
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
def _print(self, _object, _attributes={}, **_arguments):
|
||||
"""print: Print the specified object(s)
|
||||
Required argument: list of objects to print
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'aevt'
|
||||
_subcode = 'pdoc'
|
||||
|
||||
if _arguments: raise TypeError, 'No optional args expected'
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_quit = {
|
||||
'saving' : 'savo',
|
||||
}
|
||||
|
||||
def quit(self, _no_object=None, _attributes={}, **_arguments):
|
||||
"""quit: Quit an application program
|
||||
Keyword argument saving: specifies whether to save currently open documents
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'aevt'
|
||||
_subcode = 'quit'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_quit)
|
||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
||||
|
||||
aetools.enumsubst(_arguments, 'savo', _Enum_savo)
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_save = {
|
||||
'_in' : 'kfil',
|
||||
'as' : 'fltp',
|
||||
}
|
||||
|
||||
def save(self, _object, _attributes={}, **_arguments):
|
||||
"""save: Save an object
|
||||
Required argument: the object to save
|
||||
Keyword argument _in: the file in which to save the object
|
||||
Keyword argument as: the file type of the document in which to save the data
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'core'
|
||||
_subcode = 'save'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_save)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_suite_info = {
|
||||
'_in' : 'wrcd',
|
||||
}
|
||||
|
||||
def suite_info(self, _object, _attributes={}, **_arguments):
|
||||
"""suite info: Get information about event suite(s)
|
||||
Required argument: the suite for which to return information
|
||||
Keyword argument _in: the human language and script system in which to return information
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
Returns: a record containing the suites and their versions
|
||||
"""
|
||||
_code = 'core'
|
||||
_subcode = 'gtsi'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_suite_info)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
|
||||
class application(aetools.ComponentItem):
|
||||
"""application - An application program"""
|
||||
want = 'capp'
|
||||
class clipboard(aetools.NProperty):
|
||||
"""clipboard - the clipboard"""
|
||||
which = 'pcli'
|
||||
want = '****'
|
||||
class frontmost(aetools.NProperty):
|
||||
"""frontmost - Is this the frontmost application?"""
|
||||
which = 'pisf'
|
||||
want = 'bool'
|
||||
class name(aetools.NProperty):
|
||||
"""name - the name"""
|
||||
which = 'pnam'
|
||||
want = 'itxt'
|
||||
class selection(aetools.NProperty):
|
||||
"""selection - the selection visible to the user"""
|
||||
which = 'sele'
|
||||
want = 'csel'
|
||||
class version(aetools.NProperty):
|
||||
"""version - the version of the application"""
|
||||
which = 'vers'
|
||||
want = 'vers'
|
||||
|
||||
applications = application
|
||||
|
||||
class character(aetools.ComponentItem):
|
||||
"""character - A character"""
|
||||
want = 'cha '
|
||||
class color(aetools.NProperty):
|
||||
"""color - the color"""
|
||||
which = 'colr'
|
||||
want = 'cRGB'
|
||||
class font(aetools.NProperty):
|
||||
"""font - the name of the font"""
|
||||
which = 'font'
|
||||
want = 'ctxt'
|
||||
class size(aetools.NProperty):
|
||||
"""size - the size in points"""
|
||||
which = 'ptsz'
|
||||
want = 'fixd'
|
||||
class writing_code(aetools.NProperty):
|
||||
"""writing code - the script system and language"""
|
||||
which = 'psct'
|
||||
want = 'intl'
|
||||
class style(aetools.NProperty):
|
||||
"""style - the text style"""
|
||||
which = 'txst'
|
||||
want = 'tsty'
|
||||
class uniform_styles(aetools.NProperty):
|
||||
"""uniform styles - the text style"""
|
||||
which = 'ustl'
|
||||
want = 'tsty'
|
||||
|
||||
characters = character
|
||||
|
||||
class document(aetools.ComponentItem):
|
||||
"""document - A document"""
|
||||
want = 'docu'
|
||||
class modified(aetools.NProperty):
|
||||
"""modified - Has the document been modified since the last save?"""
|
||||
which = 'imod'
|
||||
want = 'bool'
|
||||
|
||||
documents = document
|
||||
|
||||
class file(aetools.ComponentItem):
|
||||
"""file - A file"""
|
||||
want = 'file'
|
||||
class stationery(aetools.NProperty):
|
||||
"""stationery - Is the file a stationery file?"""
|
||||
which = 'pspd'
|
||||
want = 'bool'
|
||||
|
||||
files = file
|
||||
|
||||
class selection_2d_object(aetools.ComponentItem):
|
||||
"""selection-object - the selection visible to the user"""
|
||||
want = 'csel'
|
||||
class contents(aetools.NProperty):
|
||||
"""contents - the contents of the selection"""
|
||||
which = 'pcnt'
|
||||
want = 'type'
|
||||
|
||||
class text(aetools.ComponentItem):
|
||||
"""text - Text"""
|
||||
want = 'ctxt'
|
||||
# repeated property font the name of the font of the first character
|
||||
|
||||
class text_style_info(aetools.ComponentItem):
|
||||
"""text style info - On and Off styles of text run"""
|
||||
want = 'tsty'
|
||||
class on_styles(aetools.NProperty):
|
||||
"""on styles - the styles that are on for the text"""
|
||||
which = 'onst'
|
||||
want = 'styl'
|
||||
class off_styles(aetools.NProperty):
|
||||
"""off styles - the styles that are off for the text"""
|
||||
which = 'ofst'
|
||||
want = 'styl'
|
||||
|
||||
text_style_infos = text_style_info
|
||||
|
||||
class window(aetools.ComponentItem):
|
||||
"""window - A window"""
|
||||
want = 'cwin'
|
||||
class bounds(aetools.NProperty):
|
||||
"""bounds - the boundary rectangle for the window"""
|
||||
which = 'pbnd'
|
||||
want = 'qdrt'
|
||||
class closeable(aetools.NProperty):
|
||||
"""closeable - Does the window have a close box?"""
|
||||
which = 'hclb'
|
||||
want = 'bool'
|
||||
class titled(aetools.NProperty):
|
||||
"""titled - Does the window have a title bar?"""
|
||||
which = 'ptit'
|
||||
want = 'bool'
|
||||
class index(aetools.NProperty):
|
||||
"""index - the number of the window"""
|
||||
which = 'pidx'
|
||||
want = 'long'
|
||||
class floating(aetools.NProperty):
|
||||
"""floating - Does the window float?"""
|
||||
which = 'isfl'
|
||||
want = 'bool'
|
||||
class modal(aetools.NProperty):
|
||||
"""modal - Is the window modal?"""
|
||||
which = 'pmod'
|
||||
want = 'bool'
|
||||
class resizable(aetools.NProperty):
|
||||
"""resizable - Is the window resizable?"""
|
||||
which = 'prsz'
|
||||
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'
|
||||
class visible(aetools.NProperty):
|
||||
"""visible - Is the window visible?"""
|
||||
which = 'pvis'
|
||||
want = 'bool'
|
||||
|
||||
windows = window
|
||||
|
||||
class insertion_point(aetools.ComponentItem):
|
||||
"""insertion point - An insertion location between two objects"""
|
||||
want = 'cins'
|
||||
|
||||
insertion_points = insertion_point
|
||||
application._propdict = {
|
||||
'clipboard' : clipboard,
|
||||
'frontmost' : frontmost,
|
||||
'name' : name,
|
||||
'selection' : selection,
|
||||
'version' : version,
|
||||
}
|
||||
application._elemdict = {
|
||||
}
|
||||
character._propdict = {
|
||||
'color' : color,
|
||||
'font' : font,
|
||||
'size' : size,
|
||||
'writing_code' : writing_code,
|
||||
'style' : style,
|
||||
'uniform_styles' : uniform_styles,
|
||||
}
|
||||
character._elemdict = {
|
||||
}
|
||||
document._propdict = {
|
||||
'modified' : modified,
|
||||
}
|
||||
document._elemdict = {
|
||||
}
|
||||
file._propdict = {
|
||||
'stationery' : stationery,
|
||||
}
|
||||
file._elemdict = {
|
||||
}
|
||||
selection_2d_object._propdict = {
|
||||
'contents' : contents,
|
||||
}
|
||||
selection_2d_object._elemdict = {
|
||||
}
|
||||
text._propdict = {
|
||||
'font' : font,
|
||||
}
|
||||
text._elemdict = {
|
||||
}
|
||||
text_style_info._propdict = {
|
||||
'on_styles' : on_styles,
|
||||
'off_styles' : off_styles,
|
||||
}
|
||||
text_style_info._elemdict = {
|
||||
}
|
||||
window._propdict = {
|
||||
'bounds' : bounds,
|
||||
'closeable' : closeable,
|
||||
'titled' : titled,
|
||||
'index' : index,
|
||||
'floating' : floating,
|
||||
'modal' : modal,
|
||||
'resizable' : resizable,
|
||||
'zoomable' : zoomable,
|
||||
'zoomed' : zoomed,
|
||||
'visible' : visible,
|
||||
}
|
||||
window._elemdict = {
|
||||
}
|
||||
insertion_point._propdict = {
|
||||
}
|
||||
insertion_point._elemdict = {
|
||||
}
|
||||
class starts_with(aetools.NComparison):
|
||||
"""starts with - Starts with"""
|
||||
class contains(aetools.NComparison):
|
||||
"""contains - Contains"""
|
||||
class ends_with(aetools.NComparison):
|
||||
"""ends with - Ends with"""
|
||||
class _3d_(aetools.NComparison):
|
||||
"""= - Equal"""
|
||||
class _3e_(aetools.NComparison):
|
||||
"""> - Greater than"""
|
||||
class _b3_(aetools.NComparison):
|
||||
"""³ - Greater than or equal to"""
|
||||
class _3c_(aetools.NComparison):
|
||||
"""< - Less than"""
|
||||
class _b2_(aetools.NComparison):
|
||||
"""² - Less than or equal to"""
|
||||
_Enum_savo = {
|
||||
'yes' : 'yes ', # Save objects now
|
||||
'no' : 'no ', # Do not save objects
|
||||
'ask' : 'ask ', # Ask the user whether to save
|
||||
}
|
||||
|
||||
_Enum_kfrm = {
|
||||
'index' : 'indx', # keyform designating indexed access
|
||||
'named' : 'name', # keyform designating named access
|
||||
'id' : 'ID ', # keyform designating access by unique identifier
|
||||
}
|
||||
|
||||
_Enum_styl = {
|
||||
'plain' : 'plan', # Plain
|
||||
'bold' : 'bold', # Bold
|
||||
'italic' : 'ital', # Italic
|
||||
'outline' : 'outl', # Outline
|
||||
'shadow' : 'shad', # Shadow
|
||||
'underline' : 'undl', # Underline
|
||||
'superscript' : 'spsc', # Superscript
|
||||
'subscript' : 'sbsc', # Subscript
|
||||
'strikethrough' : 'strk', # Strikethrough
|
||||
'small_caps' : 'smcp', # Small caps
|
||||
'all_caps' : 'alcp', # All capital letters
|
||||
'all_lowercase' : 'lowc', # Lowercase
|
||||
'condensed' : 'cond', # Condensed
|
||||
'expanded' : 'pexp', # Expanded
|
||||
'hidden' : 'hidn', # Hidden
|
||||
}
|
||||
|
||||
|
||||
#
|
||||
# Indices of types declared in this module
|
||||
#
|
||||
_classdeclarations = {
|
||||
'docu' : document,
|
||||
'tsty' : text_style_info,
|
||||
'ctxt' : text,
|
||||
'capp' : application,
|
||||
'csel' : selection_2d_object,
|
||||
'file' : file,
|
||||
'cwin' : window,
|
||||
'cha ' : character,
|
||||
'cins' : insertion_point,
|
||||
}
|
||||
|
||||
_propdeclarations = {
|
||||
'ptit' : titled,
|
||||
'onst' : on_styles,
|
||||
'pnam' : name,
|
||||
'pcli' : clipboard,
|
||||
'ustl' : uniform_styles,
|
||||
'psct' : writing_code,
|
||||
'txst' : style,
|
||||
'pvis' : visible,
|
||||
'pspd' : stationery,
|
||||
'pisf' : frontmost,
|
||||
'sele' : selection,
|
||||
'pmod' : modal,
|
||||
'imod' : modified,
|
||||
'ofst' : off_styles,
|
||||
'ptsz' : size,
|
||||
'pzum' : zoomed,
|
||||
'hclb' : closeable,
|
||||
'font' : font,
|
||||
'pcnt' : contents,
|
||||
'isfl' : floating,
|
||||
'pidx' : index,
|
||||
'iszm' : zoomable,
|
||||
'colr' : color,
|
||||
'pbnd' : bounds,
|
||||
'vers' : version,
|
||||
'prsz' : resizable,
|
||||
}
|
||||
|
||||
_compdeclarations = {
|
||||
'> ' : _3e_,
|
||||
'bgwt' : starts_with,
|
||||
'>= ' : _b3_,
|
||||
'= ' : _3d_,
|
||||
'<= ' : _b2_,
|
||||
'cont' : contains,
|
||||
'ends' : ends_with,
|
||||
'< ' : _3c_,
|
||||
}
|
||||
|
||||
_enumdeclarations = {
|
||||
'styl' : _Enum_styl,
|
||||
'savo' : _Enum_savo,
|
||||
'kfrm' : _Enum_kfrm,
|
||||
}
|
|
@ -1,62 +0,0 @@
|
|||
"""Suite Standard URL suite: Mac URL standard, supported by many apps
|
||||
|
||||
|
||||
|
||||
Level 1, version 1
|
||||
|
||||
Generated from flap:Programma's:Netscape NavigatorŽ Folder:Netscape NavigatorŽ 3.01
|
||||
AETE/AEUT resource version 1/0, language 0, script 0
|
||||
"""
|
||||
|
||||
import aetools
|
||||
import MacOS
|
||||
|
||||
_code = 'GURL'
|
||||
|
||||
class Standard_URL_suite:
|
||||
|
||||
_argmap_GetURL = {
|
||||
'to' : 'dest',
|
||||
'inside' : 'HWIN',
|
||||
'_from' : 'refe',
|
||||
}
|
||||
|
||||
def GetURL(self, _object, _attributes={}, **_arguments):
|
||||
"""GetURL: Loads the URL (optionaly to disk)
|
||||
|
||||
Required argument: The url
|
||||
Keyword argument to: file the URL should be loaded into
|
||||
Keyword argument inside: Window the URL should be loaded to
|
||||
Keyword argument _from: Refererer, to be sent with the HTTP request
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'GURL'
|
||||
_subcode = 'GURL'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_GetURL)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
|
||||
#
|
||||
# Indices of types declared in this module
|
||||
#
|
||||
_classdeclarations = {
|
||||
}
|
||||
|
||||
_propdeclarations = {
|
||||
}
|
||||
|
||||
_compdeclarations = {
|
||||
}
|
||||
|
||||
_enumdeclarations = {
|
||||
}
|
|
@ -1,106 +0,0 @@
|
|||
"""Suite Table Suite: Classes for manipulating tables
|
||||
Level 1, version 1
|
||||
|
||||
Generated from flap:System Folder:Extensions:Scripting Additions:Dialects:English Dialect
|
||||
AETE/AEUT resource version 1/0, language 0, script 0
|
||||
"""
|
||||
|
||||
import aetools
|
||||
import MacOS
|
||||
|
||||
_code = 'tbls'
|
||||
|
||||
class Table_Suite:
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class cell(aetools.ComponentItem):
|
||||
"""cell - A cell"""
|
||||
want = 'ccel'
|
||||
class _class(aetools.NProperty):
|
||||
"""class - the class"""
|
||||
which = 'pcls'
|
||||
want = 'type'
|
||||
class formula(aetools.NProperty):
|
||||
"""formula - the formula of the cell"""
|
||||
which = 'pfor'
|
||||
want = 'ctxt'
|
||||
class protection(aetools.NProperty):
|
||||
"""protection - Indicates whether value or formula in the cell can be changed"""
|
||||
which = 'ppro'
|
||||
want = 'prtn'
|
||||
|
||||
cells = cell
|
||||
|
||||
class column(aetools.ComponentItem):
|
||||
"""column - A column"""
|
||||
want = 'ccol'
|
||||
class name(aetools.NProperty):
|
||||
"""name - the name"""
|
||||
which = 'pnam'
|
||||
want = 'itxt'
|
||||
|
||||
columns = column
|
||||
|
||||
class row(aetools.ComponentItem):
|
||||
"""row - A row"""
|
||||
want = 'crow'
|
||||
|
||||
rows = row
|
||||
|
||||
class table(aetools.ComponentItem):
|
||||
"""table - A table"""
|
||||
want = 'ctbl'
|
||||
|
||||
tables = table
|
||||
cell._propdict = {
|
||||
'_class' : _class,
|
||||
'formula' : formula,
|
||||
'protection' : protection,
|
||||
}
|
||||
cell._elemdict = {
|
||||
}
|
||||
column._propdict = {
|
||||
'name' : name,
|
||||
}
|
||||
column._elemdict = {
|
||||
}
|
||||
row._propdict = {
|
||||
}
|
||||
row._elemdict = {
|
||||
}
|
||||
table._propdict = {
|
||||
}
|
||||
table._elemdict = {
|
||||
}
|
||||
_Enum_prtn = {
|
||||
'read_only' : 'nmod', # Can't change values or formulas
|
||||
'formulas_protected' : 'fpro', # Can changes values but not formulas
|
||||
'read_2f_write' : 'modf', # Can change values and formulas
|
||||
}
|
||||
|
||||
|
||||
#
|
||||
# Indices of types declared in this module
|
||||
#
|
||||
_classdeclarations = {
|
||||
'ccel' : cell,
|
||||
'ctbl' : table,
|
||||
'ccol' : column,
|
||||
'crow' : row,
|
||||
}
|
||||
|
||||
_propdeclarations = {
|
||||
'ppro' : protection,
|
||||
'pnam' : name,
|
||||
'pfor' : formula,
|
||||
'pcls' : _class,
|
||||
}
|
||||
|
||||
_compdeclarations = {
|
||||
}
|
||||
|
||||
_enumdeclarations = {
|
||||
'prtn' : _Enum_prtn,
|
||||
}
|
|
@ -1,186 +0,0 @@
|
|||
"""Suite Text Suite: A set of basic classes for text processing
|
||||
Level 1, version 1
|
||||
|
||||
Generated from flap:System Folder:Extensions:Scripting Additions:Dialects:English Dialect
|
||||
AETE/AEUT resource version 1/0, language 0, script 0
|
||||
"""
|
||||
|
||||
import aetools
|
||||
import MacOS
|
||||
|
||||
_code = 'TEXT'
|
||||
|
||||
class Text_Suite:
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class character(aetools.ComponentItem):
|
||||
"""character - A character"""
|
||||
want = 'cha '
|
||||
class best_type(aetools.NProperty):
|
||||
"""best type - the best descriptor type"""
|
||||
which = 'pbst'
|
||||
want = 'type'
|
||||
class _class(aetools.NProperty):
|
||||
"""class - the class"""
|
||||
which = 'pcls'
|
||||
want = 'type'
|
||||
class color(aetools.NProperty):
|
||||
"""color - the color"""
|
||||
which = 'colr'
|
||||
want = 'cRGB'
|
||||
class default_type(aetools.NProperty):
|
||||
"""default type - the default descriptor type"""
|
||||
which = 'deft'
|
||||
want = 'type'
|
||||
class font(aetools.NProperty):
|
||||
"""font - the name of the font"""
|
||||
which = 'font'
|
||||
want = 'ctxt'
|
||||
class size(aetools.NProperty):
|
||||
"""size - the size in points"""
|
||||
which = 'ptsz'
|
||||
want = 'fixd'
|
||||
class writing_code(aetools.NProperty):
|
||||
"""writing code - the script system and language"""
|
||||
which = 'psct'
|
||||
want = 'intl'
|
||||
class style(aetools.NProperty):
|
||||
"""style - the text style"""
|
||||
which = 'txst'
|
||||
want = 'tsty'
|
||||
class uniform_styles(aetools.NProperty):
|
||||
"""uniform styles - the text style"""
|
||||
which = 'ustl'
|
||||
want = 'tsty'
|
||||
|
||||
class line(aetools.ComponentItem):
|
||||
"""line - A line of text"""
|
||||
want = 'clin'
|
||||
class justification(aetools.NProperty):
|
||||
"""justification - Justification of the text"""
|
||||
which = 'pjst'
|
||||
want = 'just'
|
||||
|
||||
lines = line
|
||||
|
||||
class paragraph(aetools.ComponentItem):
|
||||
"""paragraph - A paragraph"""
|
||||
want = 'cpar'
|
||||
|
||||
paragraphs = paragraph
|
||||
|
||||
class text(aetools.ComponentItem):
|
||||
"""text - Text"""
|
||||
want = 'ctxt'
|
||||
|
||||
class text_flow(aetools.ComponentItem):
|
||||
"""text flow - A contiguous block of text"""
|
||||
want = 'cflo'
|
||||
class name(aetools.NProperty):
|
||||
"""name - the name"""
|
||||
which = 'pnam'
|
||||
want = 'itxt'
|
||||
|
||||
text_flows = text_flow
|
||||
|
||||
class word(aetools.ComponentItem):
|
||||
"""word - A word"""
|
||||
want = 'cwor'
|
||||
|
||||
words = word
|
||||
character._propdict = {
|
||||
'best_type' : best_type,
|
||||
'_class' : _class,
|
||||
'color' : color,
|
||||
'default_type' : default_type,
|
||||
'font' : font,
|
||||
'size' : size,
|
||||
'writing_code' : writing_code,
|
||||
'style' : style,
|
||||
'uniform_styles' : uniform_styles,
|
||||
}
|
||||
character._elemdict = {
|
||||
}
|
||||
line._propdict = {
|
||||
'justification' : justification,
|
||||
}
|
||||
line._elemdict = {
|
||||
}
|
||||
paragraph._propdict = {
|
||||
}
|
||||
paragraph._elemdict = {
|
||||
}
|
||||
text._propdict = {
|
||||
}
|
||||
text._elemdict = {
|
||||
}
|
||||
text_flow._propdict = {
|
||||
'name' : name,
|
||||
}
|
||||
text_flow._elemdict = {
|
||||
}
|
||||
word._propdict = {
|
||||
}
|
||||
word._elemdict = {
|
||||
}
|
||||
_Enum_just = {
|
||||
'left' : 'left', # Align with left margin
|
||||
'right' : 'rght', # Align with right margin
|
||||
'center' : 'cent', # Align with center
|
||||
'full' : 'full', # Align with both left and right margins
|
||||
}
|
||||
|
||||
_Enum_styl = {
|
||||
'plain' : 'plan', # Plain
|
||||
'bold' : 'bold', # Bold
|
||||
'italic' : 'ital', # Italic
|
||||
'outline' : 'outl', # Outline
|
||||
'shadow' : 'shad', # Shadow
|
||||
'underline' : 'undl', # Underline
|
||||
'superscript' : 'spsc', # Superscript
|
||||
'subscript' : 'sbsc', # Subscript
|
||||
'strikethrough' : 'strk', # Strikethrough
|
||||
'small_caps' : 'smcp', # Small caps
|
||||
'all_caps' : 'alcp', # All capital letters
|
||||
'all_lowercase' : 'lowc', # Lowercase
|
||||
'condensed' : 'cond', # Condensed
|
||||
'expanded' : 'pexp', # Expanded
|
||||
'hidden' : 'hidn', # Hidden
|
||||
}
|
||||
|
||||
|
||||
#
|
||||
# Indices of types declared in this module
|
||||
#
|
||||
_classdeclarations = {
|
||||
'cflo' : text_flow,
|
||||
'clin' : line,
|
||||
'ctxt' : text,
|
||||
'cha ' : character,
|
||||
'cwor' : word,
|
||||
'cpar' : paragraph,
|
||||
}
|
||||
|
||||
_propdeclarations = {
|
||||
'pbst' : best_type,
|
||||
'psct' : writing_code,
|
||||
'txst' : style,
|
||||
'colr' : color,
|
||||
'font' : font,
|
||||
'pnam' : name,
|
||||
'pcls' : _class,
|
||||
'deft' : default_type,
|
||||
'pjst' : justification,
|
||||
'ptsz' : size,
|
||||
'ustl' : uniform_styles,
|
||||
}
|
||||
|
||||
_compdeclarations = {
|
||||
}
|
||||
|
||||
_enumdeclarations = {
|
||||
'styl' : _Enum_styl,
|
||||
'just' : _Enum_just,
|
||||
}
|
|
@ -1,454 +0,0 @@
|
|||
"""Suite Type Names Suite: Terminology for Registry data types
|
||||
Level 1, version 1
|
||||
|
||||
Generated from flap:System Folder:Extensions:Scripting Additions:Dialects:English Dialect
|
||||
AETE/AEUT resource version 1/0, language 0, script 0
|
||||
"""
|
||||
|
||||
import aetools
|
||||
import MacOS
|
||||
|
||||
_code = 'tpnm'
|
||||
|
||||
class Type_Names_Suite:
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class anything(aetools.ComponentItem):
|
||||
"""anything - various types of data"""
|
||||
want = '****'
|
||||
|
||||
class type_class(aetools.ComponentItem):
|
||||
"""type class - class name"""
|
||||
want = 'type'
|
||||
|
||||
class type_class_info(aetools.ComponentItem):
|
||||
"""type class info - information about properties and elements of a class"""
|
||||
want = 'gcli'
|
||||
|
||||
class type_event_info(aetools.ComponentItem):
|
||||
"""type event info - information about an event"""
|
||||
want = 'evin'
|
||||
|
||||
class string(aetools.ComponentItem):
|
||||
"""string - text in a specific language and script system"""
|
||||
want = 'itxt'
|
||||
|
||||
class writing_code(aetools.ComponentItem):
|
||||
"""writing code - codes which identify the language and script system"""
|
||||
want = 'intl'
|
||||
|
||||
class bounding_rectangle(aetools.ComponentItem):
|
||||
"""bounding rectangle - bounding rectangle"""
|
||||
want = 'qdrt'
|
||||
|
||||
class point(aetools.ComponentItem):
|
||||
"""point - point coordinates"""
|
||||
want = 'QDpt'
|
||||
|
||||
class fixed(aetools.ComponentItem):
|
||||
"""fixed - a real number"""
|
||||
want = 'fixd'
|
||||
|
||||
class location_reference(aetools.ComponentItem):
|
||||
"""location reference - """
|
||||
want = 'insl'
|
||||
|
||||
class application_dictionary(aetools.ComponentItem):
|
||||
"""application dictionary - """
|
||||
want = 'aete'
|
||||
|
||||
class color_table(aetools.ComponentItem):
|
||||
"""color table - """
|
||||
want = 'clrt'
|
||||
|
||||
class dash_style(aetools.ComponentItem):
|
||||
"""dash style - """
|
||||
want = 'tdas'
|
||||
|
||||
class double_integer(aetools.ComponentItem):
|
||||
"""double integer - """
|
||||
want = 'comp'
|
||||
|
||||
class extended_real(aetools.ComponentItem):
|
||||
"""extended real - """
|
||||
want = 'exte'
|
||||
|
||||
class file_specification(aetools.ComponentItem):
|
||||
"""file specification - """
|
||||
want = 'fss '
|
||||
|
||||
class fixed_point(aetools.ComponentItem):
|
||||
"""fixed point - """
|
||||
want = 'fpnt'
|
||||
|
||||
class fixed_rectangle(aetools.ComponentItem):
|
||||
"""fixed rectangle - """
|
||||
want = 'frct'
|
||||
|
||||
class long_fixed(aetools.ComponentItem):
|
||||
"""long fixed - """
|
||||
want = 'lfxd'
|
||||
|
||||
class long_fixed_point(aetools.ComponentItem):
|
||||
"""long fixed point - """
|
||||
want = 'lfpt'
|
||||
|
||||
class long_fixed_rectangle(aetools.ComponentItem):
|
||||
"""long fixed rectangle - """
|
||||
want = 'lfrc'
|
||||
|
||||
class long_point(aetools.ComponentItem):
|
||||
"""long point - """
|
||||
want = 'lpnt'
|
||||
|
||||
class long_rectangle(aetools.ComponentItem):
|
||||
"""long rectangle - """
|
||||
want = 'lrct'
|
||||
|
||||
class machine_location(aetools.ComponentItem):
|
||||
"""machine location - """
|
||||
want = 'mLoc'
|
||||
|
||||
class menu(aetools.ComponentItem):
|
||||
"""menu - """
|
||||
want = 'cmnu'
|
||||
|
||||
class menu_item(aetools.ComponentItem):
|
||||
"""menu item - """
|
||||
want = 'cmen'
|
||||
|
||||
class null(aetools.ComponentItem):
|
||||
"""null - """
|
||||
want = 'null'
|
||||
|
||||
class picture(aetools.ComponentItem):
|
||||
"""picture - """
|
||||
want = 'PICT'
|
||||
|
||||
class pixel_map_record(aetools.ComponentItem):
|
||||
"""pixel map record - """
|
||||
want = 'tpmm'
|
||||
|
||||
class PostScript_picture(aetools.ComponentItem):
|
||||
"""PostScript picture - """
|
||||
want = 'EPS '
|
||||
|
||||
class RGB16_color(aetools.ComponentItem):
|
||||
"""RGB16 color - """
|
||||
want = 'tr16'
|
||||
|
||||
class RGB96_color(aetools.ComponentItem):
|
||||
"""RGB96 color - """
|
||||
want = 'tr96'
|
||||
|
||||
class small_integer(aetools.ComponentItem):
|
||||
"""small integer - """
|
||||
want = 'shor'
|
||||
|
||||
class small_real(aetools.ComponentItem):
|
||||
"""small real - """
|
||||
want = 'sing'
|
||||
|
||||
class system_dictionary(aetools.ComponentItem):
|
||||
"""system dictionary - """
|
||||
want = 'aeut'
|
||||
|
||||
class rotation(aetools.ComponentItem):
|
||||
"""rotation - """
|
||||
want = 'trot'
|
||||
|
||||
class scrap_styles(aetools.ComponentItem):
|
||||
"""scrap styles - """
|
||||
want = 'styl'
|
||||
|
||||
class TIFF_picture(aetools.ComponentItem):
|
||||
"""TIFF picture - """
|
||||
want = 'TIFF'
|
||||
|
||||
class version(aetools.ComponentItem):
|
||||
"""version - """
|
||||
want = 'vers'
|
||||
|
||||
class unsigned_integer(aetools.ComponentItem):
|
||||
"""unsigned integer - """
|
||||
want = 'magn'
|
||||
|
||||
class type_property_info(aetools.ComponentItem):
|
||||
"""type property info - """
|
||||
want = 'pinf'
|
||||
|
||||
class type_element_info(aetools.ComponentItem):
|
||||
"""type element info - """
|
||||
want = 'elin'
|
||||
|
||||
class type_parameter_info(aetools.ComponentItem):
|
||||
"""type parameter info - """
|
||||
want = 'pmin'
|
||||
|
||||
class type_suite_info(aetools.ComponentItem):
|
||||
"""type suite info - """
|
||||
want = 'suin'
|
||||
|
||||
class target_id(aetools.ComponentItem):
|
||||
"""target id - """
|
||||
want = 'targ'
|
||||
|
||||
class plain_text(aetools.ComponentItem):
|
||||
"""plain text - """
|
||||
want = 'TEXT'
|
||||
|
||||
class writing_code(aetools.ComponentItem):
|
||||
"""writing code - codes which identify the language and script system"""
|
||||
want = 'psct'
|
||||
anything._propdict = {
|
||||
}
|
||||
anything._elemdict = {
|
||||
}
|
||||
type_class._propdict = {
|
||||
}
|
||||
type_class._elemdict = {
|
||||
}
|
||||
type_class_info._propdict = {
|
||||
}
|
||||
type_class_info._elemdict = {
|
||||
}
|
||||
type_event_info._propdict = {
|
||||
}
|
||||
type_event_info._elemdict = {
|
||||
}
|
||||
string._propdict = {
|
||||
}
|
||||
string._elemdict = {
|
||||
}
|
||||
writing_code._propdict = {
|
||||
}
|
||||
writing_code._elemdict = {
|
||||
}
|
||||
bounding_rectangle._propdict = {
|
||||
}
|
||||
bounding_rectangle._elemdict = {
|
||||
}
|
||||
point._propdict = {
|
||||
}
|
||||
point._elemdict = {
|
||||
}
|
||||
fixed._propdict = {
|
||||
}
|
||||
fixed._elemdict = {
|
||||
}
|
||||
location_reference._propdict = {
|
||||
}
|
||||
location_reference._elemdict = {
|
||||
}
|
||||
application_dictionary._propdict = {
|
||||
}
|
||||
application_dictionary._elemdict = {
|
||||
}
|
||||
color_table._propdict = {
|
||||
}
|
||||
color_table._elemdict = {
|
||||
}
|
||||
dash_style._propdict = {
|
||||
}
|
||||
dash_style._elemdict = {
|
||||
}
|
||||
double_integer._propdict = {
|
||||
}
|
||||
double_integer._elemdict = {
|
||||
}
|
||||
extended_real._propdict = {
|
||||
}
|
||||
extended_real._elemdict = {
|
||||
}
|
||||
file_specification._propdict = {
|
||||
}
|
||||
file_specification._elemdict = {
|
||||
}
|
||||
fixed_point._propdict = {
|
||||
}
|
||||
fixed_point._elemdict = {
|
||||
}
|
||||
fixed_rectangle._propdict = {
|
||||
}
|
||||
fixed_rectangle._elemdict = {
|
||||
}
|
||||
long_fixed._propdict = {
|
||||
}
|
||||
long_fixed._elemdict = {
|
||||
}
|
||||
long_fixed_point._propdict = {
|
||||
}
|
||||
long_fixed_point._elemdict = {
|
||||
}
|
||||
long_fixed_rectangle._propdict = {
|
||||
}
|
||||
long_fixed_rectangle._elemdict = {
|
||||
}
|
||||
long_point._propdict = {
|
||||
}
|
||||
long_point._elemdict = {
|
||||
}
|
||||
long_rectangle._propdict = {
|
||||
}
|
||||
long_rectangle._elemdict = {
|
||||
}
|
||||
machine_location._propdict = {
|
||||
}
|
||||
machine_location._elemdict = {
|
||||
}
|
||||
menu._propdict = {
|
||||
}
|
||||
menu._elemdict = {
|
||||
}
|
||||
menu_item._propdict = {
|
||||
}
|
||||
menu_item._elemdict = {
|
||||
}
|
||||
null._propdict = {
|
||||
}
|
||||
null._elemdict = {
|
||||
}
|
||||
picture._propdict = {
|
||||
}
|
||||
picture._elemdict = {
|
||||
}
|
||||
pixel_map_record._propdict = {
|
||||
}
|
||||
pixel_map_record._elemdict = {
|
||||
}
|
||||
PostScript_picture._propdict = {
|
||||
}
|
||||
PostScript_picture._elemdict = {
|
||||
}
|
||||
RGB16_color._propdict = {
|
||||
}
|
||||
RGB16_color._elemdict = {
|
||||
}
|
||||
RGB96_color._propdict = {
|
||||
}
|
||||
RGB96_color._elemdict = {
|
||||
}
|
||||
small_integer._propdict = {
|
||||
}
|
||||
small_integer._elemdict = {
|
||||
}
|
||||
small_real._propdict = {
|
||||
}
|
||||
small_real._elemdict = {
|
||||
}
|
||||
system_dictionary._propdict = {
|
||||
}
|
||||
system_dictionary._elemdict = {
|
||||
}
|
||||
rotation._propdict = {
|
||||
}
|
||||
rotation._elemdict = {
|
||||
}
|
||||
scrap_styles._propdict = {
|
||||
}
|
||||
scrap_styles._elemdict = {
|
||||
}
|
||||
TIFF_picture._propdict = {
|
||||
}
|
||||
TIFF_picture._elemdict = {
|
||||
}
|
||||
version._propdict = {
|
||||
}
|
||||
version._elemdict = {
|
||||
}
|
||||
unsigned_integer._propdict = {
|
||||
}
|
||||
unsigned_integer._elemdict = {
|
||||
}
|
||||
type_property_info._propdict = {
|
||||
}
|
||||
type_property_info._elemdict = {
|
||||
}
|
||||
type_element_info._propdict = {
|
||||
}
|
||||
type_element_info._elemdict = {
|
||||
}
|
||||
type_parameter_info._propdict = {
|
||||
}
|
||||
type_parameter_info._elemdict = {
|
||||
}
|
||||
type_suite_info._propdict = {
|
||||
}
|
||||
type_suite_info._elemdict = {
|
||||
}
|
||||
target_id._propdict = {
|
||||
}
|
||||
target_id._elemdict = {
|
||||
}
|
||||
plain_text._propdict = {
|
||||
}
|
||||
plain_text._elemdict = {
|
||||
}
|
||||
writing_code._propdict = {
|
||||
}
|
||||
writing_code._elemdict = {
|
||||
}
|
||||
|
||||
#
|
||||
# Indices of types declared in this module
|
||||
#
|
||||
_classdeclarations = {
|
||||
'targ' : target_id,
|
||||
'fss ' : file_specification,
|
||||
'lrct' : long_rectangle,
|
||||
'exte' : extended_real,
|
||||
'tdas' : dash_style,
|
||||
'tr96' : RGB96_color,
|
||||
'gcli' : type_class_info,
|
||||
'suin' : type_suite_info,
|
||||
'evin' : type_event_info,
|
||||
'fixd' : fixed,
|
||||
'lfrc' : long_fixed_rectangle,
|
||||
'frct' : fixed_rectangle,
|
||||
'cmnu' : menu,
|
||||
'magn' : unsigned_integer,
|
||||
'aete' : application_dictionary,
|
||||
'styl' : scrap_styles,
|
||||
'QDpt' : point,
|
||||
'insl' : location_reference,
|
||||
'comp' : double_integer,
|
||||
'tr16' : RGB16_color,
|
||||
'vers' : version,
|
||||
'type' : type_class,
|
||||
'lfxd' : long_fixed,
|
||||
'TIFF' : TIFF_picture,
|
||||
'qdrt' : bounding_rectangle,
|
||||
'lfpt' : long_fixed_point,
|
||||
'pmin' : type_parameter_info,
|
||||
'psct' : writing_code,
|
||||
'pinf' : type_property_info,
|
||||
'****' : anything,
|
||||
'PICT' : picture,
|
||||
'lpnt' : long_point,
|
||||
'trot' : rotation,
|
||||
'null' : null,
|
||||
'sing' : small_real,
|
||||
'tpmm' : pixel_map_record,
|
||||
'cmen' : menu_item,
|
||||
'itxt' : string,
|
||||
'EPS ' : PostScript_picture,
|
||||
'mLoc' : machine_location,
|
||||
'elin' : type_element_info,
|
||||
'intl' : writing_code,
|
||||
'fpnt' : fixed_point,
|
||||
'clrt' : color_table,
|
||||
'aeut' : system_dictionary,
|
||||
'shor' : small_integer,
|
||||
'TEXT' : plain_text,
|
||||
}
|
||||
|
||||
_propdeclarations = {
|
||||
}
|
||||
|
||||
_compdeclarations = {
|
||||
}
|
||||
|
||||
_enumdeclarations = {
|
||||
}
|
|
@ -1,426 +0,0 @@
|
|||
"""Suite WorldWideWeb suite, as defined in Spyglass spec.:
|
||||
Level 1, version 1
|
||||
|
||||
Generated from flap:Programma's:Netscape NavigatorŽ Folder:Netscape NavigatorŽ 3.01
|
||||
AETE/AEUT resource version 1/0, language 0, script 0
|
||||
"""
|
||||
|
||||
import aetools
|
||||
import MacOS
|
||||
|
||||
_code = 'WWW!'
|
||||
|
||||
class WorldWideWeb_suite_2c__as_defined_in_Spyglass_spec_2e_:
|
||||
|
||||
_argmap_OpenURL = {
|
||||
'to' : 'INTO',
|
||||
'toWindow' : 'WIND',
|
||||
'flags' : 'FLGS',
|
||||
'post_data' : 'POST',
|
||||
'post_type' : 'MIME',
|
||||
'progressApp' : 'PROG',
|
||||
}
|
||||
|
||||
def OpenURL(self, _object, _attributes={}, **_arguments):
|
||||
"""OpenURL: Opens a URL. Allows for more options than GetURL event
|
||||
Required argument: URL
|
||||
Keyword argument to: file destination
|
||||
Keyword argument toWindow: window iD
|
||||
Keyword argument flags: Binary: any combination of 1, 2 and 4 is allowed: 1 and 2 mean force reload the document. 4 is ignored
|
||||
Keyword argument post_data: Form posting data
|
||||
Keyword argument post_type: MIME type of the posting data. Defaults to application/x-www-form-urlencoded
|
||||
Keyword argument progressApp: Application that will display progress
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
Returns: ID of the loading window
|
||||
"""
|
||||
_code = 'WWW!'
|
||||
_subcode = 'OURL'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_OpenURL)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_ShowFile = {
|
||||
'MIME_type' : 'MIME',
|
||||
'Window_ID' : 'WIND',
|
||||
'URL' : 'URL ',
|
||||
}
|
||||
|
||||
def ShowFile(self, _object, _attributes={}, **_arguments):
|
||||
"""ShowFile: Similar to OpenDocuments, except that it specifies the parent URL, and MIME type of the file
|
||||
Required argument: File to open
|
||||
Keyword argument MIME_type: MIME type
|
||||
Keyword argument Window_ID: Window to open the file in
|
||||
Keyword argument URL: Use this as a base URL
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
Returns: Window ID of the loaded window. 0 means ShowFile failed, FFFFFFF means that data was not appropriate type to display in the browser.
|
||||
"""
|
||||
_code = 'WWW!'
|
||||
_subcode = 'SHWF'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_ShowFile)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_parse_anchor = {
|
||||
'relative_to' : 'RELA',
|
||||
}
|
||||
|
||||
def parse_anchor(self, _object, _attributes={}, **_arguments):
|
||||
"""parse anchor: Resolves the relative URL
|
||||
Required argument: Main URL
|
||||
Keyword argument relative_to: Relative URL
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
Returns: Parsed URL
|
||||
"""
|
||||
_code = 'WWW!'
|
||||
_subcode = 'PRSA'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_parse_anchor)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_cancel_progress = {
|
||||
'in_window' : 'WIND',
|
||||
}
|
||||
|
||||
def cancel_progress(self, _object=None, _attributes={}, **_arguments):
|
||||
"""cancel progress: Interrupts the download of the document in the given window
|
||||
Required argument: progress ID, obtained from the progress app
|
||||
Keyword argument in_window: window ID of the progress to cancel
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'WWW!'
|
||||
_subcode = 'CNCL'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_cancel_progress)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
def find_URL(self, _object, _attributes={}, **_arguments):
|
||||
"""find URL: If the file was downloaded by Netscape, you can call FindURL to find out the URL used to download the file.
|
||||
Required argument: File spec
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
Returns: The URL
|
||||
"""
|
||||
_code = 'WWW!'
|
||||
_subcode = 'FURL'
|
||||
|
||||
if _arguments: raise TypeError, 'No optional args expected'
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
def webActivate(self, _object=None, _attributes={}, **_arguments):
|
||||
"""webActivate: Makes Netscape the frontmost application, and selects a given window. This event is here for suite completeness/ cross-platform compatibility only, you should use standard AppleEvents instead.
|
||||
Required argument: window to bring to front
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'WWW!'
|
||||
_subcode = 'ACTV'
|
||||
|
||||
if _arguments: raise TypeError, 'No optional args expected'
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
def list_windows(self, _no_object=None, _attributes={}, **_arguments):
|
||||
"""list windows: Lists the IDs of all the hypertext windows
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
Returns: List of unique IDs of all the hypertext windows
|
||||
"""
|
||||
_code = 'WWW!'
|
||||
_subcode = 'LSTW'
|
||||
|
||||
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.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
def get_window_info(self, _object=None, _attributes={}, **_arguments):
|
||||
"""get window info: Returns the information about the window as a list. Currently the list contains the window title and the URL. You can get the same information using standard Apple Event GetProperty.
|
||||
Required argument: window ID
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
Returns: undocumented, typecode 'list'
|
||||
"""
|
||||
_code = 'WWW!'
|
||||
_subcode = 'WNFO'
|
||||
|
||||
if _arguments: raise TypeError, 'No optional args expected'
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
def register_URL_echo(self, _object=None, _attributes={}, **_arguments):
|
||||
"""register URL echo: Registers the –echo” application. Each download from now on will be echoed to this application.
|
||||
Required argument: Application signature
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'WWW!'
|
||||
_subcode = 'RGUE'
|
||||
|
||||
if _arguments: raise TypeError, 'No optional args expected'
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
def unregister_URL_echo(self, _object, _attributes={}, **_arguments):
|
||||
"""unregister URL echo: cancels URL echo
|
||||
Required argument: application signature
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'WWW!'
|
||||
_subcode = 'UNRU'
|
||||
|
||||
if _arguments: raise TypeError, 'No optional args expected'
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_register_viewer = {
|
||||
'MIME_type' : 'MIME',
|
||||
'with_file_type' : 'FTYP',
|
||||
}
|
||||
|
||||
def register_viewer(self, _object, _attributes={}, **_arguments):
|
||||
"""register viewer: Registers an application as a •specialÕ viewer for this MIME type. The application will be launched with ViewDoc events
|
||||
Required argument: Application sig
|
||||
Keyword argument MIME_type: MIME type viewer is registering for
|
||||
Keyword argument with_file_type: Mac file type for the downloaded files
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
Returns: TRUE if registration has been successful
|
||||
"""
|
||||
_code = 'WWW!'
|
||||
_subcode = 'RGVW'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_register_viewer)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_unregister_viewer = {
|
||||
'MIME_type' : 'MIME',
|
||||
}
|
||||
|
||||
def unregister_viewer(self, _object, _attributes={}, **_arguments):
|
||||
"""unregister viewer: Revert to the old way of handling this MIME type
|
||||
Required argument: Application sig
|
||||
Keyword argument MIME_type: MIME type to be unregistered
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
Returns: TRUE if the event was successful
|
||||
"""
|
||||
_code = 'WWW!'
|
||||
_subcode = 'UNRV'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_unregister_viewer)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_register_protocol = {
|
||||
'for_protocol' : 'PROT',
|
||||
}
|
||||
|
||||
def register_protocol(self, _object=None, _attributes={}, **_arguments):
|
||||
"""register protocol: Registers application as a –handler” for this protocol with a given prefix. The handler will receive –OpenURL”, or if that fails, –GetURL” event.
|
||||
Required argument: Application sig
|
||||
Keyword argument for_protocol: protocol prefix: –finger:”, –file”,
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
Returns: TRUE if registration has been successful
|
||||
"""
|
||||
_code = 'WWW!'
|
||||
_subcode = 'RGPR'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_register_protocol)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_unregister_protocol = {
|
||||
'for_protocol' : 'PROT',
|
||||
}
|
||||
|
||||
def unregister_protocol(self, _object=None, _attributes={}, **_arguments):
|
||||
"""unregister protocol: reverses the effects of –register protocol”
|
||||
Required argument: Application sig.
|
||||
Keyword argument for_protocol: protocol prefix. If none, unregister for all protocols
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
Returns: TRUE if successful
|
||||
"""
|
||||
_code = 'WWW!'
|
||||
_subcode = 'UNRP'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_unregister_protocol)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_register_window_close = {
|
||||
'for_window' : 'WIND',
|
||||
}
|
||||
|
||||
def register_window_close(self, _object=None, _attributes={}, **_arguments):
|
||||
"""register window close: Netscape will notify registered application when this window closes
|
||||
Required argument: Application signature
|
||||
Keyword argument for_window: window ID
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
Returns: true if successful
|
||||
"""
|
||||
_code = 'WWW!'
|
||||
_subcode = 'RGWC'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_register_window_close)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_unregister_window_close = {
|
||||
'for_window' : 'WIND',
|
||||
}
|
||||
|
||||
def unregister_window_close(self, _object=None, _attributes={}, **_arguments):
|
||||
"""unregister window close: Undo for register window close
|
||||
Required argument: Application signature
|
||||
Keyword argument for_window: window ID
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
Returns: true if successful
|
||||
"""
|
||||
_code = 'WWW!'
|
||||
_subcode = 'UNRC'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_unregister_window_close)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.has_key('errn'):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
|
||||
#
|
||||
# Indices of types declared in this module
|
||||
#
|
||||
_classdeclarations = {
|
||||
}
|
||||
|
||||
_propdeclarations = {
|
||||
}
|
||||
|
||||
_compdeclarations = {
|
||||
}
|
||||
|
||||
_enumdeclarations = {
|
||||
}
|
Loading…
Reference in New Issue