0635名称未設定
2015/11/20(金) 21:03:43.90ID:0VjuA+NT0順番に処理されるから、delay いらない気がするのですが、下記のような
単純な script でも delay をいれないとうまく動きませんでした。
delay がないと myURL に設定したウェブページじゃなくて、へんなリダイレクトページが表示されました。
-- クロームでウェブページを表示
tell application "Google Chrome"
tell window kuroWinIndex to activate
-- delay 0.5
set myTab to make new tab at end of tabs of window kuroWinIndex
set kensakuGoku to _searchWord as text
-- delay 0.5
set myURL to "https://www.google.co.jp/search?q=" & kensakuGoku
log "myURL : " & myURL
delay 0.4
set URL of myTab to myURL
end tell