Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can I identify all windows associated with a given OSX (Lion) process and hide them?

Ideally, I would set some kind of flag on the process itself to automatically hide any windows it opens.

Is it possible, for example, to instantiate a "null" window manager, which looks like a normal window manager but doesn't actually open any windows?

share|improve this question
up vote 0 down vote accepted

Individual windows can't usually even be hidden in OS X. You can do it with AppleScript though: osascript -e 'tell app "TextEdit" to set visible of windows to false'.

Applications can be hidden like tell app "System Events" to set visible of process "TextEdit" to false.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.