Hi.
I just would activate a menu item of an application attached to the Apple bar menu.
example:
I would activate the line 'Recent Incoming Fies' of the Dropcopy's menu
I found on the forum some examples of AppleScript which I tried to draw inspiration from ...
But alas, I'am not a 'scripter' ...
I'm trying something as:
How to find information about menu bar # and menu bar item #
in the case of an application residing in the menu bar.
It is really not clear to me.
Thanks in advance
I fear without the above mentioned tools (or by listing the elements via AppleScript) this will be hard, if not impossible.
When it comes to the number of the menu bar item, you could try to find it with trial and error. (Be careful if the menu contains some kind of potentially destructive commands.)
Thanks Vincent.
I tryed that solution this afternoon and it seems to be ok.
But I should prefer the Applescript approach because it seems me more generic...
Since I posted this topic nearly 3 years ago, I've learned a lot.
So, I no longer recommend this tool, as it does not work with all macOS's.
Instead, I suggest you try one of these tools:
UIElementInspector provided as part of the free Xcode download (as @Tom suggests)