[Python-checkins] python/dist/src/Mac/OSXResources/app/Resources/English.lproj/Documentation scripting.html,1.1,1.2

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
2003年4月01日 14:30:29 -0800


Update of /cvsroot/python/python/dist/src/Mac/OSXResources/app/Resources/English.lproj/Documentation
In directory sc8-pr-cvs1:/tmp/cvs-serv570
Modified Files:
	scripting.html 
Log Message:
The minimal scripting example now actually works.
Index: scripting.html
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/OSXResources/app/Resources/English.lproj/Documentation/scripting.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** scripting.html	31 Mar 2003 15:10:46 -0000	1.1
--- scripting.html	1 Apr 2003 22:30:23 -0000	1.2
***************
*** 15,32 ****
 Architecure (OSA, also commonly referred to as AppleScript), allowing
 you to control scriptable applications from your Python program,
! and with a fairly pythonic interface. The following pieces of
! AppleScript and Python are rougly identical (XXXX Not true right now!):</p>
 	
 <blockquote><tt><pre>
- tell application "Finder"
- 	get name of window 1
- end tell
- </pre></tt></blockquote>
- 
- <blockquote><tt><pre>
 import Finder
 
 f = Finder.Finder()
 print f.get(Finder.window(1).name)
 </pre></tt></blockquote>
 
--- 15,34 ----
 Architecure (OSA, also commonly referred to as AppleScript), allowing
 you to control scriptable applications from your Python program,
! and with a fairly pythonic interface. This piece of
! Python:</p>
 	
 <blockquote><tt><pre>
 import Finder
 
 f = Finder.Finder()
 print f.get(Finder.window(1).name)
+ </pre></tt></blockquote>
+ 
+ <p>is identical to the following piece of AppleScript:</p>
+ 
+ <blockquote><tt><pre>
+ tell application "Finder"
+ 	get name of window 1
+ end tell
 </pre></tt></blockquote>
 

AltStyle によって変換されたページ (->オリジナル) /