I would like to use KM variables to set the font face and font size in the Action "Select or Show a Menu Item", but it doesn't seem to work. The macro just stops at this Action. Can I make this work? If so, how?
Here are my Actions:
Prior to the "Select...Menu" Action, I set the Variables:
I remembered this post but couldn't find it on the board due to the mediocre search, but Google was my friend:
menu AND variable site:http://forum.keyboardmaestro.com
Second link down.
You can do this by resorting to System Events & UI-Scripting:
set topLevelMenu to "Window"
set subMenuItemOne to "Macro Library"
tell application "System Events"
tell application process "Keyboard Maestro"
tell menu item subMenuItemOne of menu 1 of menu bar item topLevelMenu of menu bar 1
if enabled then
click
else
beep
end if
end tell
end tell
end tell
But UI-Scripting is not for the faint of heart. I bought UI Browser long ago to save my hair.
Thanks Chris. As always you're quick to reply.
But, as you say, "UI-Scripting is not for the faint of heart". That's much more complicated than I want to pursue. I was just trying to add some actions to make it easier for others to customize.