Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
Applescript - Detect if Dock Contextual Menu Item is Checked?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="JdLobo" data-source="post: 1159015" data-attributes="member: 183657"><p>Thank you very much, your script has help me a lot <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>And I'm gonna help you!!</p><p></p><p>What you need if a menu is "checked" is the attribute AXMenuItemMarkChar, something like: </p><p></p><p>set isChecked to ((value of attribute "AXMenuItemMarkChar" of -themenuitem-) ≠ "")</p><p></p><p>that because AXMenuItemMarkChar is the tick char, if there isn't the check it is just nothing <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="JdLobo, post: 1159015, member: 183657"] Thank you very much, your script has help me a lot :) And I'm gonna help you!! What you need if a menu is "checked" is the attribute AXMenuItemMarkChar, something like: set isChecked to ((value of attribute "AXMenuItemMarkChar" of -themenuitem-) ≠ "") that because AXMenuItemMarkChar is the tick char, if there isn't the check it is just nothing :) [/QUOTE]
Verification
Name this item. 🍎
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Applescript - Detect if Dock Contextual Menu Item is Checked?
Top