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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -