めたこんn0.1

XMLを取得するには

  • URL Access Scriptingを使う
    • ログイン不要でgetするだけなら
  • 参考safariをコントロールする方法ならこんなかんじ
    • クッキーやセッションを使うならブラウザで
set targetURL to "http://www.nicovideo.jp/api/getthumbinfo/sm5602903"

tell application "Safari"
	open location targetURL
	delay 5
	try
		set theSource to (the source of document 1)
	on error
		beep 2
		return
	end try
	display dialog theSource
end tell