Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
b6035299
Kaydet (Commit)
b6035299
authored
Nis 01, 2003
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
The minimal scripting example now actually works.
üst
9dd78101
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
scripting.html
.../app/Resources/English.lproj/Documentation/scripting.html
+10
-8
No files found.
Mac/OSXResources/app/Resources/English.lproj/Documentation/scripting.html
Dosyayı görüntüle @
b6035299
...
...
@@ -14,15 +14,9 @@
<p>
Python has a fairly complete implementation of the Open Scripting
Architecure (OSA, also commonly referred to as AppleScript), allowing
you to control scriptable applications from your Python program,
and with a fairly pythonic interface. Th
e following pieces
of
AppleScript and Python are rougly identical (XXXX Not true right now!)
:
</p>
and with a fairly pythonic interface. Th
is piece
of
Python
:
</p>
<blockquote><tt><pre>
tell application "Finder"
get name of window 1
end tell
</pre></tt></blockquote>
<blockquote><tt><pre>
import Finder
...
...
@@ -30,6 +24,14 @@ 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>
<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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment