Yes, I've done that for other menu items in LR. The problem, as I set out in my original post, is that it doesn't work for this menu item, which is absent from KM's "drill down" ability.
Thanks. Sorry - should have said it was the "QImage One" menu item. Regex didn't work, but I tried recording a macro, then deleting all steps apart from "select menu" and that has worked.
There are three characters before the Q, which appear to be spaces (copy and paste into BBEdit then hex dump shows 20 20 20). I had tried entering n spaces by hand, with n in 1...5, but it didn't (and doesn't) work. Jolly odd.
I am trying to solve a problem almost identical to yours. I tried recording a macro, but all I got was mouse clicks relative to the screen's left corner.
My problem is exactly the same as @kikashi. I'm trying to get the "Plug-in Extras" menu of Adobe Lightroom Classic, which is apparently generated on the fly. Using the Menu dropdown produces a very simplistic list.
Run this in Apple's anemic Script Editor or preferably Script Debugger.
Plug for SD...
Run, donât walk over to Late Night Software and download Script Debugger. Even if you donât buy a copy and instead use the freeware âLiteâ version it is far, far superior to Appleâs painfully decrepit and neglected Script Editor.
Regex find/replace support.
Step through your code line by line (commercial only).
tell application "System Events"
tell application process "Lightroom Classic"
set its frontmost to true
tell menu bar 1
tell menu "File"
perform action "AXPress"
tell menu item "Plug-in Extras"
perform action "AXPress"
tell menu 1
return name of menu items
end tell
end tell
end tell
end tell
end tell
end tell
Let me know what you get in the Results panel of the Script Editor.
@paulwaldo I used the recording only to find the actual name of the QImage menu item. It was a long time ago and I can't now remember the details, but as you can see, my difficulty lay in getting the correct name for that menu item.
When setting up the KM macro, I just typed the menu title and menu names into KM's dialog. Have you tried that? In the Macro, Menu title is "File", Submenu is "Plug-in Extras" and Menu Item is "Flickr ExtrasâŚ"
I don't have the Flickr export enabled, but I just tried recording a selection from that submenu and it seems to work: I ended up with this.