Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5ccd826

Browse files
committed
Gensuitemodule generates python classes from aete/aeut resources
test_suite is a tiny test program for such a generated class
1 parent 40775ba commit 5ccd826

3 files changed

Lines changed: 527 additions & 0 deletions

File tree

Mac/Lib/test/test_suite.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#
2+
# Test of generated AE modules.
3+
#
4+
import addpack
5+
addpack.addpack('Tools')
6+
addpack.addpack('bgen')
7+
addpack.addpack('ae')
8+
import sys
9+
import macfs
10+
11+
import aetools
12+
from AppleScript_Suite import AppleScript_Suite
13+
from Required_Suite import Required_Suite
14+
from Standard_Suite import Standard_Suite
15+
16+
class ScriptableEditor(aetools.TalkTo, AppleScript_Suite, Required_Suite,
17+
Standard_Suite):
18+
19+
def __init__(self):
20+
aetools.TalkTo.__init__(self, 'quil')
21+
self.activate()
22+
23+
app = ScriptableEditor()
24+
rv = app.open(macfs.FSSpec(sys.argv[0]))
25+
print 'Opened', sys.argv[0]
26+
print 'Return value:', rv
27+
rv = app.get(aetools.Word(10, aetools.Document(1)))
28+
print 'Got word 10 doc 1:', rv
29+
sys.exit(1)

Mac/Modules/ae/README

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
A quick note on what all the files here are, currently (16-7-95),
2+
and whether they really are source or generated.
3+
4+
aegen.py Generated by aescan, temporary file
5+
AEModule.c Generated by aescan, from AppleEvents.h
6+
AEObjects.py Generated by aescan, from AEObjects.h
7+
aepack.py Routines to convert python objects <-> AEDesc record
8+
(formerly part of aetools, now imported there)
9+
AERegistry.py Generated by aescan, from AERegistry.h
10+
aescan.py Program to scan headers and generate AE modules
11+
aesupport.py Helper code for aescan
12+
aetools.py Routines/classes to create and send appleevents
13+
aetypes.py Classes for python objects corresponding to AEDesc types
14+
(formerly part of aetools, now imported there)
15+
AppleEvents.py Generated by aescan, from AppleEvents.h
16+
AppleScript_Suite.py Generated by gensuitemodule
17+
echo.py Old test program (may still work) to echo events back to sender
18+
gensuitemodule.py Program to scan aete/aeut resources and generate python
19+
interface modules
20+
Required_Suite.py Generated by gensuitemodule
21+
Standard_Suite.py Generated by gensuitemodule
22+
tae.py Old test program (may still work) to send an appleevent
23+
tell.py Old test program (may still work) to send an appleevent
24+
test_suite.py Test program to test bits of the _Suite modules and aetools/etc

0 commit comments

Comments
 (0)