Hello everyone, I’ve been able to get the value of the checkmark of a menu item, but when moving my script from script editor to another app, it seems to break. I wonder if this is because the other app can’t decode the special-key character that I put in it? Putting the special key character “âœ“” was the only way I could get this thing to work - if there is another way, please let me know. Thanks!
Here is the code:
if basicCk is not "âœ“" then keystroke "1" using command down
Is there any other way to do this, or would the character code equivalent of “âœ“” work?
this should work also in Tiger
set checkMark to «data utxt2713» as Unicode text
to detect if a menu item is cheked, you can use something like this
activate application "myApp"
tell application "System Events"
tell process "myApp"
value of attribute "AXMenuItemMarkChar" of menu item "ab" of menu 1 of menu bar item "cd" of menu bar 1
Hello again Stefan! Thank you for your help.
The issue I am having is that the application I am trying to use the script in, ControllerMate, does not recognize the << and >> characters in the suggestion you outlined. It does work in Script Editor just fine. Is there an alternative way to write this command in regular ASCII so this other app reads it?
Error message reported in ControllerMate application: