2013年6月2日日曜日

書きかけ)mac nhkラジオ 英語


書きかけ)


のんびりポタ・ランニング: Mac+完全にフリーウェアだけでらじるらじる(NHKネットラジオ)を録音する

Mac+完全にフリーウェアだけでらじるらじる(NHKネットラジオ)を録音する




/Users/◯◯◯/Library/Application Support/QTAir/Script/start_end_rajiru2.app


以前版
tell application "Safari"
activate
open location "http://www3.nhk.or.jp/netradio/player/index.html?r2"
set RAJIRU2 to id of window 1
delay 930
tell the window id RAJIRU2 to close
end tell

自分版
tell application "Google Chrome"
activate
open location "http://www3.nhk.or.jp/netradio/player/index.html?r2"
set RAJIRU2 to id of window 1
delay 2800
tell the window id RAJIRU2 to close
end tell


2013/06/02chromeで
http://www3.nhk.or.jp/netradio/player/index.html?r2
を叩くと
http://www3.nhk.or.jp/netradio/player/index.html?area=tokyo
に飛ばされて、ラジオ第1が再生される。

らじるらじるのページからリンクでラジオ第2を開いたときのurl
http://www3.nhk.or.jp/netradio/player/index.html?ch=r2&area=tokyo

とりあえずurlを変更してみる。ついでにwindowを閉じない設定に。

6/1版
tell application "Safari"
activate
open location "http://www3.nhk.or.jp/netradio/player/index.html?r2"
end tell


6/1自分版
tell application "Google Chrome"
activate
open location "http://www3.nhk.or.jp/netradio/player/index.html?ch=r2&area=tokyo"
end tell


0 件のコメント: