6 author: Bill Bedford, <billb@mousa.demon.co.uk>
8 This suite of modules is a first attempt at writing a more user friendly
9 python/appleevent interface. The files in the suite are:
14 Loads three dictionaries generated by getaete into __dict__'s of three
15 classes and thus gives us direct assess to all the methods in the aete.
16 Each method now contains all the information needed to build apple events.
20 >>>PythonScript.PsScript(SIGNATURE, TIMEOUT, IGNORING)
23 SIGNATURE is the target application
25 and IGNORING is a boolean and determines whether the script waits for a reply
26 from the target before going on to the next event
28 >>>PythonScript.PyScript(Event, Object, keywdarg1..., keywdarg2...etc)
30 Object is a appleevent object specifier and is of the form
32 PythonScript.PsClass.Class1(arg).Class2(arg)Š.Property()
34 All applescript event, class and property names are capitalised to
35 distinguish them from python methods.
40 Reads the aete of the target application and returns it as a list of three
41 dictionaries, which represent all the events, properties and enumeration in
42 the aete. (the fourth dictionary, comparisons, has never been implemented
43 in applescript so I have not used it) It also reads the applescript aeut
44 and adds any suites that are missing (ie where the application author has
45 set his suite to inherit from the aeut.) and the applescript suite, which
46 gives the language methods
51 Produces a text file with the aete set out in a human readable form,
52 similar to the Open Dictionary command in the applescript editor.
55 baetools, baepack, baetypes
56 ---------------------------
58 These are direct equivalents of aetools, aepack, aetypes in the standard
59 distribution. Some methods and classes have been enhanced others are
62 PyScriptTest, testeudora
63 ------------------------
65 A couple of test scripts. Testeudora is an updated version of the one in
66 the standard distribution.
72 Still To Do (in no particular order)
75 These modules are much slower than applescript. I believe they could be
76 made faster by rewriting the aete parser in getaete and/or by putting in
77 some form of persistent storage so that the class dictionaries can be cached.
79 The parsing of the appleevent replies need rewriting.
81 Support for the use of scripting additions.
83 A Python aeut needs to be written, much of the applescript one is redundant
86 Probably a few other things I haven't thought of yet.