AppleScript名:TouchBarの検出 |
set aRes to detectTouchBar() of me –> true/false on detectTouchBar() tell application "System Events" set frontApp to first application process whose frontmost is true try set touchBar to first UI element of frontApp whose role is "AXFunctionRowTopLevelElement" on error errMsg number errNum return false end try set touchBarItems to value of attribute "AXChildren" of touchBar return (touchBarItems is not equal to {}) end tell end detectTouchBar |
More from my site
(Visited 54 times, 1 visits today)