How to determine which process owns a window or notification in OS X

avalonnyc
avalonnyc used Ask the Experts™
on
How can I determine which process owns a window or notification in OS X, like I can in Windows with Process Monitor or Process Explorer?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Ankit PareekOnline Marketing

Commented:
On Mac we are used activity monitor
Refer this link it will be solve your problem
https://support.apple.com/en-gb/HT201464
Activity Monitor is GUI utility that's easiest to look up.

It basically combines the functionality of several command line tools into one easy interface.
top <-- similar to Activity Monitor
ps <-- shows processes
lsof <-- list open files and the process it's connected to
dtrace
netstat <-- network
systemstats
there's other's too

Author

Commented:
I am familiar with Activity Monitor.   I looked at Activity Monitor to see if it had that functionality.

If someone asked me this question about Windows, I would say:

1. Download Process Explorer from https://technet.microsoft.com/en-us/sysinternals/bb896653.aspx and run it.
4. Drag the toolbar icon that looks like a target, and drop it on the window or dialog in question, and the process that owns the window will be highlighted in blue.

So, let me rephrase the question:
How can I determine which process owns a window or notification in OS X using Activity Monitor?

Thanks!
I don't think anyone has written a program with that kind of capability for a Mac.  There isn't an equivalent to Mark Russinovich in the Mac World.  He wrote many great tools for Microsoft before they hired him.  Fortunately, they kept everything intact.  I downloaded every Sysinternals utility of his on that day, just in case.

The closest thing you can get is to Select Windowed Processes to narrow the field click on the info button of each process, attempt to watch it for changes, then work backwards from there.  You need to ID the process ID and correlate all the Parent Process IDs.  I think that's easier done via a command line script to parse the output of ps after you've identified the PID of the main window.  It will still be tedious.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial