Pandionの新着メッセージをSnarlに通知させる
こちらを参考にやってみた。
→http://daikon.tea-nifty.com/blog/2006/10/pandion_c5f7.html
変更したコードはこんな感じ(189-190行目が変更箇所)。
== $PANDION_HOME/src/chat-container.html == 188| if ( this.SessionPool.Events.Exists( Tracker.Address.ShortAddress() ) | && ! external.globals( 'ClientRoster' ).IsFlashing ) { 189| wshshell=new ActiveXObject("WScript.Shell") 190| wshshell.run("sncmd /M Pandion \"You got a message.\" c:\\home\\come.gif") 191| Tracker.Activate( false ); 192| } else 193| Tracker.Activate( true );
わざわざsncmd.exeのほうを使っているけど,たぶんsnarl_command.exe
でも大丈夫なはず。面倒がないように,これら(sncmd/snarl_command)はパスの通ったディレクトリに放り込んでおく。
スクリプトをUTF-8で保存しとけば日本語のメッセージも出せるらしいんだけど,なんでかうまくいかなかった。:-(