[Python-checkins] python/dist/src/Doc/mac scripting.tex,1.1,1.2

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
Fri, 13 Jun 2003 07:59:31 -0700


Update of /cvsroot/python/python/dist/src/Doc/mac
In directory sc8-pr-cvs1:/tmp/cvs-serv16325

Modified Files:
	scripting.tex 
Log Message:
Documented the fact that the main class now mimicks the OSA "application" class.


Index: scripting.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/mac/scripting.tex,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** scripting.tex	11 Apr 2003 15:35:27 -0000	1.1
--- scripting.tex	13 Jun 2003 14:59:26 -0000	1.2
***************
*** 32,36 ****
  
  f = Finder.Finder()
! print f.get(Finder.window(1).name)
  \end{verbatim}
  
--- 32,36 ----
  
  f = Finder.Finder()
! print f.get(f.window(1).name)
  \end{verbatim}
  
***************
*** 65,72 ****
  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
  \code{f.window(1).name.get()}.
  
--- 65,74 ----
  classes, as are comparisons and all the other thingies.
  
! 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()}.