我想做一個腳本,將爲您做一個谷歌搜索,但如果我做了多個詞搜索,它不起作用。有人知道怎麼修這個東西嗎?Applescript:打開位置與多個詞不工作
set keyword to text returned of (display dialog "Enter Search Query" default answer "")
display dialog "Enter Search Query" buttons {"Cancel", "Ok"} default button 2
if the button returned of the result is "Ok" then
open location "http://search.yahoo.com/search?p=" & keyword
end if
當我運行它時,它表示它預計「在編碼和tid上」中的「on」是其他 – 2013-04-08 18:08:46
嗨,這沒有什麼意義。你能發佈完整的錯誤嗎?這個腳本在這裏工作正常。沒有錯誤。你有沒有改變我發佈的腳本。如果是這樣如何? – markhunte 2013-04-08 20:42:05
沒關係。我所要做的只是指定一個瀏覽器。謝謝! '將關鍵字設置爲返回的文本(顯示對話框「輸入搜索查詢」默認答案「」) 顯示對話框「輸入搜索查詢」按鈕{「取消」,「確定」}默認按鈕2 如果返回結果的按鈕是「好的」,然後 打開位置「http://search.yahoo.com/search?p=」和關鍵字 end if' – 2013-04-08 22:15:00