我正在构建一个更复杂的applescript,但我想先让基础工作。
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 以隐藏方式打开。