【发布时间】:2012-08-19 03:46:30
【问题描述】:
我设置的是一个 AppleScript,它通过几个选项询问您要打开哪个网站,为了简单起见,我只列出了一个选项,Google。这是当前代码:
if the_button = "Google" then
site = "http://www.google.com"
tell application "Google Chrome"
launch
tell window 1
make new tab with properties {URL:site}
repeat while loading of active tab
delay 0.1
end repeat
end tell
activate
end tell
它会在谷歌浏览器中打开一个新标签,但不会在 URL 栏中放置任何内容或重新加载/加载或任何内容。我试过这个:Script Safari 5.1 to open a tab 但是,没有任何效果。我正在使用 Mac OS X Lion 10.7.4 和 Google Chrome 版本 21.0.1180.79。请帮忙!
【问题讨论】:
标签: macos google-chrome editor applescript