summaryrefslogtreecommitdiffstats
path: root/Mac/Lib/test/test_suite.py
blob: 6559f169c90ef1be07cadad4c053c9766a08c8f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#
# 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)