0
我正在處理單擊應用程序菜單欄中菜單項的applescript。我想運行這個腳本而不顯示點擊目標菜單項的整個過程。例如,這裏的一些代碼下方點擊disable for an hour
菜單項在菜單欄的F.lux應用Applescript:在運行gui applescript時隱藏gui的操作
ignoring application responses
tell application "System Events" to tell process "Flux"
click menu bar item 1 of menu bar 2
end tell
end ignoring
do shell script "killall System\\ Events"
delay 0.1
tell application "System Events" to tell process "Flux"
tell menu bar item 1 of menu bar 2
click menu item "Disable for an hour" of menu 1
end tell
end tell
如何運行此腳本時,我去阻止GUI操作的顯示?