Re: Accessing *other* applications' windows?
Re: Accessing *other* applications' windows?
- Subject: Re: Accessing *other* applications' windows?
- From: email@hidden
- Date: Fri, 10 Feb 2006 19:36:46 -0800
I want to control placement of another application's window(s).
If the application was "mine" (i.e. I wrote it), this would be as
easy as providing a scripting interface from the application.
However, I'm interested in controlling *any* application's windows.
I've checked most of the technologies/APIs I can think of without
finding much information. Is this possible? Which API/Framework
should provide what I'm looking for?
I'm going to make people cranky by saying it, but:
http://homepage.cs.latrobe.edu.au/wjtregaskis/Rotated Windows.sitx
http://svn.berlios.de/viewcvs/desktopmanager/DesktopManager/trunk/
DesktopManager/
The first is a program (mine) that shows you how to do naughty things
with windows. Primarily, for your purposes, it shows you how to
obtain the global window list. You cannot manipulate other
application's windows with this app, though. Yet, at least.
The second link is the source for Desktop Manager. It does naughty
things with mach_inject and the Dock to give itself control over
other application's windows. It's hard to follow parts of it, but
all the machinery that you'll need is in there.
However, having said all that, if you can make do with a more
official approach - such as GUI scripting - you should do so. Also,
if this is a feature you'd like for a program you intend to
distributed, I'd recommend firing off a bug to email@hidden to find
someone to talk about it with, and perhaps filing an enhancement
request at http://bugreport.apple.com/. If it's just an academic
exercise, you're probably on your own as far as official support is
concerned, but there's certainly plenty of people around - such as
myself - who are interested in such things.
Wade
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden