4

How does one identify which process is behind a certain tool bar icon without having to rely on asking someone on the know or just killing processes until the icon in question magically disappears? For X11 there are tools like xwininfo. Is there anything similar for (older) OS X versions like Mavericks?

An example case: How to figure which process (by process ID) has produced the highlighted icon on my toolbar? I'm happy to do some programming if necessary, but would rather not reinvent the wheel here.

enter image description here

A partial solution to this problem would be to use Accessibility Inspector, as described on one of answers. However, quite often it does not reveal enough information (nor does it allow one to go get all the way to the process ID without some manual labor on the way).

For example, for the icon above Accessibility Inspector is not much of help:

enter image description here

2

You can use Accessibility Inspector bundled with Xcode. Then select the element and press ⌘CMD+F7 to lock the element. Then Select AXApplication in "Hierarchy" and then Go To Element button. There under the accessibilityTitle You'll have the name of the application.

Here's the screenshot where You can find 1Keyboard app selected.

enter image description here

2
  • In some cases the attribute accessibilityTitle is an empty string. Is there any way to get further in those cases? For example, in the particular example I picked, there the accessibilityTitle is <nil>.
    – user60290
    Mar 25 '16 at 15:39
  • @SamiLaine You have to select AXApplication not AXMenuBarItem. Mar 25 '16 at 18:29

You must log in to answer this question.