diff options
Diffstat (limited to 'Mac/OSXResources/app/Resources/English.lproj/Documentation/scripting.html')
-rw-r--r-- | Mac/OSXResources/app/Resources/English.lproj/Documentation/scripting.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Mac/OSXResources/app/Resources/English.lproj/Documentation/scripting.html b/Mac/OSXResources/app/Resources/English.lproj/Documentation/scripting.html index 58b1fe263b..16321cb28e 100644 --- a/Mac/OSXResources/app/Resources/English.lproj/Documentation/scripting.html +++ b/Mac/OSXResources/app/Resources/English.lproj/Documentation/scripting.html @@ -17,25 +17,25 @@ you to control scriptable applications from your Python program, and with a fairly pythonic interface. This piece of Python:</p> -<blockquote><tt><pre> +<blockquote><pre><tt> import Finder f = Finder.Finder() print f.get(f.window(1).name) -</pre></tt></blockquote> +</tt></pre></blockquote> <p>is identical to the following piece of AppleScript:</p> -<blockquote><tt><pre> +<blockquote><pre><tt> tell application "Finder" get name of window 1 end tell -</pre></tt></blockquote> +</tt></pre></blockquote> <p>To send AppleEvents to an application you must first create the Python modules interfacing to the terminology of the application (what <tt>Script Editor</tt> calls the "Dictionary"). Use the IDE menu command -<tt>File->Generate OSA Suite...</tt> for this. For more control run</p> +<tt>File->Generate OSA Suite...</tt> for this. For more control run</p> <blockquote><tt> pythonw .../Lib/plat-mac/gensuitemodule.py --help |