サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
Pixel 9
rubyosa.rubyforge.org
RubyOSA Tutorial This tutorial will explain how to use RubyOSA to control scriptable Mac OS X applications. We expect you to have some Ruby programming background before starting reading it. We also expect you to have properly installed RubyOSA on your machine. You can read information about the installation of RubyOSA on the main page. The Basics RubyOSA is a bridge between Ruby and the Open Scri
RubyOSA provides a bridge from Ruby to the Apple Event Manager. It allows Ruby programs to automate Mac OS X applications in the same way as AppleScript. For example, controlling iTunes: require 'rbosa' itunes = OSA.app('iTunes') track = itunes.current_track p track # <OSA::Itunes::FileTrack:0x1495e20> p track.name # "Over The Rainbow" p track.artist # "Keith Jarrett" p track.duration # 362.3689
このページを最初にブックマークしてみませんか?
『RubyOSA: Ruby/AppleEvent Bridge』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く