追記

こしば技術にっき

2012|01|

2012-01-09

_ rb-skypemacへのpull requestが取り込まれた!

とても嬉しかったので書き残しておく。 書いたコードをOSSに取り込んでもらったのは初めてというのと、とてもびっくりなコメントをいただいたので、本当にびっくりです。

https://github.com/elight/rb-skypemac/pull/2

Small world! You gave the "Let's Go Shibuya Rubyist Lunch" lightning talk at RubyConf, right? Glad to see you again.

行って良かったRubyConf。やって良かったLightningTalks


2012-01-01

_ Ruby1.9系でrb-skypemacを使う方法(2012年1月1日現在)

rb-skypemacはmacからSkypeアプリを操作するためのライブラリ。内部ではAppleScriptをrb-appscript経由で叩いている。

rb-skypemacはhttp://rb-skypemac.rubyforge.org/に置かれていてgem install rb-skypemacで導入できるが、1.9系環境では利用時に文法エラーがでて使うことができない。 https://github.com/elight/rb-skypemac に最新ソースがあり、1.9系対応済みとなっている。

_ rb-skypemacで用意されていないSkypeの機能を叩く方法

http://d.hatena.ne.jp/koseki2/20090405/skypesh を参照させていただいた。

Skype.send_ :command => <コマンド>

と叩く。

<コマンド>部分は、https://developer.skype.com/public-api-reference#Reference を参照。 残念ながら一部のコマンドはnilが返ってきて使えない…。原因は調べていないが、https://github.com/elight/rb-skypemac/blob/master/README.markdown によると、

As of 8/1/11, the test suite is *not running cleanly! Apparently, this is because the outdated AppleScript API no longer supports interrogating for user attributes or for group lookups*

なんだそうな。


2012|01|
追記