Re: list open application windows

2008-05-13 Thread Jens Alfke
On 12 May '08, at 8:15 PM, Ben Lowndes wrote: I'm a cocoa newbie, so I may be missing something obvious here: I'd like to get a list of open windows for all currently running applications. Nothing personal, but people seem to ask this question here about once a week ... and I just have to

Re: list open application windows

2008-05-13 Thread Ben Lowndes
On Tue, May 13, 2008 at 4:01 PM, Jens Alfke [EMAIL PROTECTED] wrote: I'm a cocoa newbie, so I may be missing something obvious here: I'd like to get a list of open windows for all currently running applications. Nothing personal, but people seem to ask this question here about once a

Re: list open application windows

2008-05-13 Thread Jean-Daniel Dupas
Le 13 mai 08 à 08:01, Jens Alfke a écrit : On 12 May '08, at 8:15 PM, Ben Lowndes wrote: I'm a cocoa newbie, so I may be missing something obvious here: I'd like to get a list of open windows for all currently running applications. Nothing personal, but people seem to ask this question

Re: list open application windows

2008-05-13 Thread Jens Alfke
On 12 May '08, at 11:13 PM, Ben Lowndes wrote: Yes, exactly: I'm working on a window management utility (or I'm trying to...). This might not be a good introductory Cocoa project. My hunch is that doing anything interesting with/to the windows will become either difficult or impossible

Re: list open application windows

2008-05-13 Thread John Clayton
Hi Ben, Take a look at the new Leopard only CGWindowListCopyWindowInfo method. Its probably what you are looking for and is able to provide a list of windows in z-order, including rect position (screen relative of course), pid, title etc. You cant modify windows using this API, but

Re: list open application windows

2008-05-13 Thread Ken Thomases
On May 13, 2008, at 1:13 AM, Ben Lowndes wrote: [...] the solution seems to lie in using the accessability API or an input manager. Is that correct? Please, please, please _don't_ write an input manager. They are a gross hack, using mechanisms that (as I understand it) Apple is planning

Re: list open application windows

2008-05-13 Thread Henry McGilton (Starbase)
On May 12, 2008, at 11:01 PM, Jens Alfke wrote: On 12 May '08, at 8:15 PM, Ben Lowndes wrote: I'm a cocoa newbie, so I may be missing something obvious here: I'd like to get a list of open windows for all currently running applications. Nothing personal, but people seem to ask this

list open application windows

2008-05-12 Thread Ben Lowndes
Hi, I'm a cocoa newbie, so I may be missing something obvious here: I'd like to get a list of open windows for all currently running applications. I've been able to get the list of running applications from NSworkspace, but can't see a method of getting the open windows. Using appleScript I

Re: list open application windows

2008-05-12 Thread Steve Christensen
On May 12, 2008, at 8:15 PM, Ben Lowndes wrote: I'm a cocoa newbie, so I may be missing something obvious here: I'd like to get a list of open windows for all currently running applications. I've been able to get the list of running applications from NSworkspace, but can't see a method of