我正在構建一個更復雜的applescript,但我想先弄清楚基礎知識。爲什麼這個蘋果腳本打開safari隱藏?
tell application "Safari"
activate
end tell
tell application "System Events"
tell process "Safari"
tell menu bar 1
tell menu bar item "File"
tell menu "File"
click menu item "New Window"
end tell
end tell
end tell
end tell
end tell
我似乎無法弄清楚的問題是爲什麼當我運行它時,safari被打開爲隱藏狀態。
與此並將激活命令移動到最後,它現在工作,謝謝! – Andrew 2013-04-28 19:32:40