如何获得UI_element性质,我想写在appscript.rb相当于代码的AppleScript: tell App "TextEdit"
properties of front window
end tell
试图 te = app("TextEdit")
puts te.windows[1].properties
收益属性名称,但没有值的列表。 感谢回答。
当我在终端执行以下命令: python setup.py py2app
它结尾为: byte-compiling /Users/gebruiker/Documents/build/bdist.macosx-10.6-universal/python2.6-
semi_standalone/app/temp/aem/ae.py to aem/ae.pyc
error: Is a direct
我试图使用rb-appscript宝石下面这段代码翻译成红宝石: tell application "System Events" to tell process "Dock"
set dock_dimensions to size in list 1
set dock_height to item 2 of dock_dimensions
end tell
我有点卡住了
我在我的Rails项目中安装了rb-scpt gem并运行了bundle。宝石是rb-appscript的一个分支。 #!/usr/bin/env ruby
# List names of playlists in iTunes.
require "rb-scpt"
itu = Appscript.app("iTunes")
p itu.sources[1].user_playlis