osx - Applescript: hiding manipulation of gui when running a gui applescript -
i'm working on applescript clicks menu items in application menu bar. i'd run script without displaying whole process of clicking target menu item. example, here's code below click disable hour
menu item in menu bar f.lux application
ignoring application responses tell application "system events" tell process "flux" click menu bar item 1 of menu bar 2 end tell end ignoring shell script "killall system\\ events" delay 0.1 tell application "system events" tell process "flux" tell menu bar item 1 of menu bar 2 click menu item "disable hour" of menu 1 end tell end tell
how go preventing display of gui manipulation when running script?
you cannot this. applescript gui scripting work ui elements must front , key human.
Comments
Post a Comment