おもろい、めずらしいアップルスクリプト発表会
■ このスレッドは過去ログ倉庫に格納されています
0552名称未設定
02/01/08 02:34ID:WWYbpzXJ前にicab版は書いたけど、IEでも一語を変えれば同じ方法でできた。
wwwから選択してもttp://から選択してもOK
--選択したURLを開く IE用
tell application "Internet Explorer"
set surl to selected text
if surl contains "ttp://" then
set AppleScript's text item delimiters to "ttp://"
set surl to text item 2 of surl
end if
OpenURL surl toWindow 0
end tell
--選択したURLを開く iCab用
tell application "iCab"
tell window 1
set surl to selection
if surl contains "ttp://" then
set AppleScript's text item delimiters to "ttp://"
set surl to text item 2 of surl
end if
OpenURL surl toWindow 0
end tell
end tell
■ このスレッドは過去ログ倉庫に格納されています