Kaydet (Commit) 5ccd826a authored tarafından Jack Jansen's avatar Jack Jansen

Gensuitemodule generates python classes from aete/aeut resources

test_suite is a tiny test program for such a generated class
üst 40775baf
#
# Test of generated AE modules.
#
import addpack
addpack.addpack('Tools')
addpack.addpack('bgen')
addpack.addpack('ae')
import sys
import macfs
import aetools
from AppleScript_Suite import AppleScript_Suite
from Required_Suite import Required_Suite
from Standard_Suite import Standard_Suite
class ScriptableEditor(aetools.TalkTo, AppleScript_Suite, Required_Suite,
Standard_Suite):
def __init__(self):
aetools.TalkTo.__init__(self, 'quil')
self.activate()
app = ScriptableEditor()
rv = app.open(macfs.FSSpec(sys.argv[0]))
print 'Opened', sys.argv[0]
print 'Return value:', rv
rv = app.get(aetools.Word(10, aetools.Document(1)))
print 'Got word 10 doc 1:', rv
sys.exit(1)
A quick note on what all the files here are, currently (16-7-95),
and whether they really are source or generated.
aegen.py Generated by aescan, temporary file
AEModule.c Generated by aescan, from AppleEvents.h
AEObjects.py Generated by aescan, from AEObjects.h
aepack.py Routines to convert python objects <-> AEDesc record
(formerly part of aetools, now imported there)
AERegistry.py Generated by aescan, from AERegistry.h
aescan.py Program to scan headers and generate AE modules
aesupport.py Helper code for aescan
aetools.py Routines/classes to create and send appleevents
aetypes.py Classes for python objects corresponding to AEDesc types
(formerly part of aetools, now imported there)
AppleEvents.py Generated by aescan, from AppleEvents.h
AppleScript_Suite.py Generated by gensuitemodule
echo.py Old test program (may still work) to echo events back to sender
gensuitemodule.py Program to scan aete/aeut resources and generate python
interface modules
Required_Suite.py Generated by gensuitemodule
Standard_Suite.py Generated by gensuitemodule
tae.py Old test program (may still work) to send an appleevent
tell.py Old test program (may still work) to send an appleevent
test_suite.py Test program to test bits of the _Suite modules and aetools/etc
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment