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
The output is
{"Aperture/iPhoto Importer Plug-in", " Import from Aperture Library...", " Aperture Import Info...", " Import from iPhoto Library...", " iPhoto Import Info...", "Aurora HDR 2018", " Transfer to Aurora HDR 2018", "DxO PhotoLab 2", " Transfer to DxO PhotoLab 2", "DxO PhotoLab 5", " Transfer to DxO PhotoLab 5", "Export to Photomatix Pro", " Export to Photomatix Pro...", "jf Flickr", " Flickr Extras...", "Luminar 3", " Transfer to Luminar 3", "Luminar 4", " Transfer to Luminar 4"}
Alas, it failed: 2023-01-26 16:41:55 Menu selection failed to pick menu File➤Plug-in Extras➤ Flickr Extras... with error -5620. Macro “test” cancelled (while executing Select “ Flickr Extras...” in the Menu “File” in Lightroom Classic).
My guess is that @kikashi observation is happening here. The prefix to "Flickr Extras..." is not spaces but some other character...
@paulwaldo, that's bizarre. Perhaps there's a setting in KM which affects what it records (more knowledgeable head than mine can comment), or maybe you have a conflicting app somewhere on your Mac. When I first posted this solution, I was running (I think) Big Sur; I'm now running Ventura, with whatever the latest versions of KM and LR were and are. As I wrote yesterday (post #19 in this thread, I think - I don't know how to link to it), when I tried it again just now, recording worked perfectly.
Are you running something which might be interfering with KM's recording, perhaps?
@ccstone@kikashi Here is an interesting data point. I tried various KM Recorder actions in the Plug-in Extras menu. Some of them recorded properly in KM, like this