tell application "Internet Explorer" Activate do script " var bsetUseInnerHTML = true; // コメント内部のHTMLを生かすか否か (true|false) var bsetPrefix = 'Benriset'; var bsetScriptName = 'ExposeComments'; bsetMain(); function bsetMain(){ if (!bsetIsFirstLaunch()) return; bsetExposeComments(); } function bsetExposeComments(){ var OBJs = document.getElementsByTagName('!') for (var i=0,n=OBJs.length; i/g,'<!$1>'); cINS.innerHTML = text; } else cINS.innerText = text; obj.parentNode.insertBefore(cINS, obj.nextSibling); with (cINS.style) { display = 'block !important'; margin = '1em 2px !important'; padding = '1px 2px !important'; color = 'black !important'; background = '#ffffce !important'; borderWidth = '1px !important'; borderStyle = 'solid !important'; borderColor = '#bbbbbb #999999 #999999 #bbbbbb !important'; fontSize = '10px !important'; fontWeight = 'normal !important'; fontStyle = 'normal !important'; textDecoration = 'none !important'; } } } function bsetIsFirstLaunch() { var bsetNSURL = 'http://www.remus.dti.ne.jp/~a-satomi/bunsyorou/MacIE5_benriSet.html'; var flagAttrName = bsetPrefix + ':' + bsetScriptName; var applyFlag = document.documentElement.getAttribute(flagAttrName); if (!applyFlag) { document.documentElement.setAttribute('xmlns:'+bsetPrefix, bsetNSURL); document.documentElement.setAttribute(flagAttrName, 'true'); return true; } else { window.status = flagAttrName + ' is already applied.'; return false; } } function bsetShowProgress(text, currentNo, wholeNo){ currentNo++; window.status = text + ' (' + currentNo + '/' + wholeNo + ')'; if (currentNo >= wholeNo) window.status = ''; } " end tell