0

我想在 Safari 中打开我当前的 Chrome URL。但是我弄乱了脚本中的引号并出现错误:error "The file /$theURL does not exist." number 1

这是脚本:

property theURL : ""
tell application "Google Chrome"
    set theURL to (get URL of (active tab) of window 1)
end tell

do shell script "open -a Safari '$theURL' "

有人可以指出必须写的do shell 部分吗?

4

1 回答 1

0

尝试:

do shell script "open -a Safari " & quoted form of theURL
于 2013-01-01T02:39:58.150 回答