diff Doc/mac/scripting.tex @ 29434:e69e54552d10 legacy-trunk

Documented the fact that the main class now mimicks the OSA "application" class.
author Jack Jansen <jack.jansen@cwi.nl>
date Fri, 13 Jun 2003 14:59:26 +0000
parents 8b49445c0a0e
children 6845697353a3
line wrap: on
line diff
--- a/Doc/mac/scripting.tex	Fri Jun 13 14:32:49 2003 +0000
+++ b/Doc/mac/scripting.tex	Fri Jun 13 14:59:26 2003 +0000
@@ -31,7 +31,7 @@
 import Finder
 
 f = Finder.Finder()
-print f.get(Finder.window(1).name)
+print f.get(f.window(1).name)
 \end{verbatim}
 
 As distributed the Python library includes packages that implement the
@@ -64,10 +64,12 @@
 keyword arguments. AppleScript classes are also implemented as Python
 classes, as are comparisons and all the other thingies.
 
-Note that in the current release there is no coupling between the main
-Python class implementing the verbs and the Python classes implementing
-the AppleScript classes. Hence, in the example above we need to use
-\code{f.get(Finder.window(1).name)} in stead of the more Pythonic
+The main
+Python class implementing the verbs also allows access to the properties
+and elements declared in the AppleScript class "application". In the
+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()}.