diff options
Diffstat (limited to 'Mac/Demo/scripting')
-rw-r--r-- | Mac/Demo/scripting/Eudora_Suite.py | 27 | ||||
-rw-r--r-- | Mac/Demo/scripting/Standard_Suite.py | 25 | ||||
-rw-r--r-- | Mac/Demo/scripting/testeudora.py | 4 |
3 files changed, 27 insertions, 29 deletions
diff --git a/Mac/Demo/scripting/Eudora_Suite.py b/Mac/Demo/scripting/Eudora_Suite.py index 13a1cf6..481aadd 100644 --- a/Mac/Demo/scripting/Eudora_Suite.py +++ b/Mac/Demo/scripting/Eudora_Suite.py @@ -1,11 +1,10 @@ """Suite Eudora Suite: Terms specific to Eudora Level 1, version 1 -Generated from Moes:Programma's:Eudora:Eudora Light +Generated from flap:Programma's:Eudora Light AETE/AEUT resource version 2/16, language 0, script 0 """ - import aetools import MacOS @@ -71,7 +70,7 @@ class Eudora_Suite: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.has_key('errn'): - raise MacOS.Error, aetools.decodeerror(_arguments) + raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----'] @@ -101,7 +100,7 @@ class Eudora_Suite: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.has_key('errn'): - raise MacOS.Error, aetools.decodeerror(_arguments) + raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----'] @@ -122,7 +121,7 @@ class Eudora_Suite: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.has_key('errn'): - raise MacOS.Error, aetools.decodeerror(_arguments) + raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----'] @@ -143,7 +142,7 @@ class Eudora_Suite: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.has_key('errn'): - raise MacOS.Error, aetools.decodeerror(_arguments) + raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----'] @@ -164,7 +163,7 @@ class Eudora_Suite: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.has_key('errn'): - raise MacOS.Error, aetools.decodeerror(_arguments) + raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----'] @@ -189,13 +188,13 @@ class Eudora_Suite: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.has_key('errn'): - raise MacOS.Error, aetools.decodeerror(_arguments) + raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----'] def unqueue(self, _object, _attributes={}, **_arguments): - """unqueue: Remove a message from the queue, so it wonÕt be sent + """unqueue: Remove a message from the queue, so it won¹t be sent Required argument: the message to unqueue Keyword argument _attributes: AppleEvent attribute dictionary """ @@ -209,7 +208,7 @@ class Eudora_Suite: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.has_key('errn'): - raise MacOS.Error, aetools.decodeerror(_arguments) + raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----'] @@ -234,7 +233,7 @@ class Eudora_Suite: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.has_key('errn'): - raise MacOS.Error, aetools.decodeerror(_arguments) + raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----'] @@ -259,7 +258,7 @@ class Eudora_Suite: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.has_key('errn'): - raise MacOS.Error, aetools.decodeerror(_arguments) + raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----'] @@ -284,7 +283,7 @@ class Eudora_Suite: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.has_key('errn'): - raise MacOS.Error, aetools.decodeerror(_arguments) + raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----'] @@ -311,7 +310,7 @@ class Eudora_Suite: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.has_key('errn'): - raise MacOS.Error, aetools.decodeerror(_arguments) + raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----'] diff --git a/Mac/Demo/scripting/Standard_Suite.py b/Mac/Demo/scripting/Standard_Suite.py index a29c11a..ce5baad 100644 --- a/Mac/Demo/scripting/Standard_Suite.py +++ b/Mac/Demo/scripting/Standard_Suite.py @@ -1,11 +1,10 @@ """Suite Standard Suite: Common terms for most applications Level 1, version 1 -Generated from Moes:Programma's:Eudora:Eudora Light +Generated from flap:Programma's:Eudora Light AETE/AEUT resource version 2/16, language 0, script 0 """ - import aetools import MacOS @@ -28,7 +27,7 @@ class Standard_Suite: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.has_key('errn'): - raise MacOS.Error, aetools.decodeerror(_arguments) + raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----'] @@ -54,7 +53,7 @@ class Standard_Suite: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.has_key('errn'): - raise MacOS.Error, aetools.decodeerror(_arguments) + raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----'] @@ -75,7 +74,7 @@ class Standard_Suite: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.has_key('errn'): - raise MacOS.Error, aetools.decodeerror(_arguments) + raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----'] @@ -96,7 +95,7 @@ class Standard_Suite: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.has_key('errn'): - raise MacOS.Error, aetools.decodeerror(_arguments) + raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----'] @@ -123,7 +122,7 @@ class Standard_Suite: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.has_key('errn'): - raise MacOS.Error, aetools.decodeerror(_arguments) + raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----'] @@ -149,7 +148,7 @@ class Standard_Suite: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.has_key('errn'): - raise MacOS.Error, aetools.decodeerror(_arguments) + raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----'] @@ -175,7 +174,7 @@ class Standard_Suite: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.has_key('errn'): - raise MacOS.Error, aetools.decodeerror(_arguments) + raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----'] @@ -195,7 +194,7 @@ class Standard_Suite: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.has_key('errn'): - raise MacOS.Error, aetools.decodeerror(_arguments) + raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----'] @@ -215,7 +214,7 @@ class Standard_Suite: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.has_key('errn'): - raise MacOS.Error, aetools.decodeerror(_arguments) + raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----'] @@ -235,7 +234,7 @@ class Standard_Suite: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.has_key('errn'): - raise MacOS.Error, aetools.decodeerror(_arguments) + raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----'] @@ -260,7 +259,7 @@ class Standard_Suite: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.has_key('errn'): - raise MacOS.Error, aetools.decodeerror(_arguments) + raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----'] diff --git a/Mac/Demo/scripting/testeudora.py b/Mac/Demo/scripting/testeudora.py index 8a86cba..951e885 100644 --- a/Mac/Demo/scripting/testeudora.py +++ b/Mac/Demo/scripting/testeudora.py @@ -12,10 +12,10 @@ class Eudora(aetools.TalkTo, Required_Suite.Required_Suite, \ pass # The Creator signature of eudora: -SIGNATURE="????" +SIGNATURE="CSOm" def main(): - talker = Eudora(SIGNATURE) + talker = Eudora(SIGNATURE, start=1) while 1: print 'get, put, quit (eudora) or exit (this program) ?' line = sys.stdin.readline() |