Commit 097da0dc authored by Jack Jansen's avatar Jack Jansen

Documented the fact that the main class now mimicks the OSA "application" class.

parent 880be6f1
...@@ -31,7 +31,7 @@ In Python, the following code fragment will do the same: ...@@ -31,7 +31,7 @@ In Python, the following code fragment will do the same:
import Finder import Finder
f = Finder.Finder() f = Finder.Finder()
print f.get(Finder.window(1).name) print f.get(f.window(1).name)
\end{verbatim} \end{verbatim}
As distributed the Python library includes packages that implement the As distributed the Python library includes packages that implement the
...@@ -64,10 +64,12 @@ direct object as the first argument and all optional parameters as ...@@ -64,10 +64,12 @@ direct object as the first argument and all optional parameters as
keyword arguments. AppleScript classes are also implemented as Python keyword arguments. AppleScript classes are also implemented as Python
classes, as are comparisons and all the other thingies. classes, as are comparisons and all the other thingies.
Note that in the current release there is no coupling between the main The main
Python class implementing the verbs and the Python classes implementing Python class implementing the verbs also allows access to the properties
the AppleScript classes. Hence, in the example above we need to use and elements declared in the AppleScript class "application". In the
\code{f.get(Finder.window(1).name)} in stead of the more Pythonic current release that is as far as the object orientation goes, so
in the example above we need to use
\code{f.get(f.window(1).name)} in stead of the more Pythonic
\code{f.window(1).name.get()}. \code{f.window(1).name.get()}.
......
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