blob: 455f12aaaffbc5dbf60c38f498beff81c2ca53e8 [file] [log] [blame]
Jack Jansen7cc57351998-08-18 14:54:11 +00001
2PythonScript
3------------
4v0.5 beta 1 24/04/98
5
6author: Bill Bedford, <billb@mousa.demon.co.uk>
7
8This suite of modules is a first attempt at writing a more user friendly
9python/appleevent interface. The files in the suite are:
10
11PythonScript
12------------
13
14Loads three dictionaries generated by getaete into __dict__'s of three
15classes and thus gives us direct assess to all the methods in the aete.
16Each method now contains all the information needed to build apple events.
17
18The general usage is
19
20>>>PythonScript.PsScript(SIGNATURE, TIMEOUT, IGNORING)
21
22where
23SIGNATURE is the target application
24TIMEOUT is in ticks
25and IGNORING is a boolean and determines whether the script waits for a reply
26from the target before going on to the next event
27
28>>>PythonScript.PyScript(Event, Object, keywdarg1..., keywdarg2...etc)
29
30Object is a appleevent object specifier and is of the form
31
Jack Jansen6f84ed52001-05-17 12:45:13 +000032PythonScript.PsClass.Class1(arg).Class2(arg)ƒ.Property()
Jack Jansen7cc57351998-08-18 14:54:11 +000033
34All applescript event, class and property names are capitalised to
35distinguish them from python methods.
36
37getaete
38-------
39
40Reads the aete of the target application and returns it as a list of three
41dictionaries, which represent all the events, properties and enumeration in
42the aete. (the fourth dictionary, comparisons, has never been implemented
43in applescript so I have not used it) It also reads the applescript aeut
44and adds any suites that are missing (ie where the application author has
45set his suite to inherit from the aeut.) and the applescript suite, which
46gives the language methods
47
48printaete
49---------
50
51Produces a text file with the aete set out in a human readable form,
52similar to the Open Dictionary command in the applescript editor.
53
54
55baetools, baepack, baetypes
56---------------------------
57
58These are direct equivalents of aetools, aepack, aetypes in the standard
59distribution. Some methods and classes have been enhanced others are
60redundant
61
62PyScriptTest, testeudora
63------------------------
64
65A couple of test scripts. Testeudora is an updated version of the one in
66the standard distribution.
67
68
69
70
71
72Still To Do (in no particular order)
73-----------
74
75These modules are much slower than applescript. I believe they could be
76made faster by rewriting the aete parser in getaete and/or by putting in
77some form of persistent storage so that the class dictionaries can be cached.
78
79The parsing of the appleevent replies need rewriting.
80
81Support for the use of scripting additions.
82
83A Python aeut needs to be written, much of the applescript one is redundant
84in python.
85
86Probably a few other things I haven't thought of yet.