--- runMode : "0" ... 文法チェックする HTML バージョン (DOCTYPE) を選択するダイアログを常に表示する。 --- runMode : "1" ... HTML 中に DOCTYPE 宣言がある時はそのままチェック。無い時は選択ダイアログで選ぶ。 --- runMode : "2" ... 選択ダイアログは常に出さない( HTML-lint のデフォルト動作におまかせ) set runMode to "1" --- 無指定時のデフォルト ---文法チェックを行うAnoher HTML-lint CGIのURL (さいごに?をつけるのお忘れなく) ---本家のCGI を使用する場合は http://openlab.ring.gr.jp/k16/htmllint/htmllint.cgi? に。 set htmllintURL to "http://najo.cc.sakura.ne.jp/~alimika/htmllint/htmllint.cgi?" set viewSouceArg to "&ViewSource=on" set htmlVerArg to "" --- Finderコメント欄の文字を拾ってモードをセットする --- アプレットとして保存してなければ無意味です。スクリプト編集プログラム自体のFinderコメントを見てしまふ。 --- いちおうOSXでも機能します。 tell application "Finder" set mySelf to path to me set runModeTmp to comment of file mySelf if (runModeTmp is "0") or (runModeTmp is "1") or (runModeTmp is "2") then set runMode to runModeTmp end tell tell application "Internet Explorer" set infoList to GetWindowInfo -1 set pageURLArg to "URL=" & text item 1 of infoList set theSource to GetSource -1 if runMode is not "2" then if theSource contains "