Friday, October 22, 2021

#1 2021-10-01 01:34:23 am

scriptman99
Member
Registered: 2010-04-11
Posts: 6

How can get the checked state of a menu item

It seems, that there is no property for the checked state of a menu item. Is there any other way to get this?

Offline

 

#2 2021-10-01 03:54:18 am

KniazidisR
Member
From:: Greece
Registered: 2019-03-03
Posts: 2091

Re: How can get the checked state of a menu item

The checked state of menu item is presented not by some property but by value of attribute "AXMenuItemMarkChar". It would be very helpful if you could declassify us the name of your menu item. To help you better.


Model: MacBook Pro
OS X: Catalina 10.15.7
Web Browser: Safari 14.1
Ram: 4 GB

Offline

 

#3 2021-10-01 07:30:36 am

scriptman99
Member
Registered: 2010-04-11
Posts: 6

Re: How can get the checked state of a menu item

Ahhhhh. I simply overlooked it. I was looking for a discription. But its simply the check.

so one can get it with

set b to value of attribute "AXMenuItemMarkChar" of menu item "Show Metrics" of menu "View" of menu bar 1

or as part of

set b to value of every attribute of menu item "Show Metrics" of menu "View" of menu bar 1


Thanks a lot!

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)