Is there an option for the "ps" command in 10.6 to only show GUI apps (perhaps those appearing in the dock, or either the dock or the menu bar)? I couldn't find anything obvious.
Results that may be inaccessible to you are currently showing.
Hide inaccessible results