Re: Traversing windows with Cocoa
Re: Traversing windows with Cocoa
- Subject: Re: Traversing windows with Cocoa
- From: Jens Alfke <email@hidden>
- Date: Mon, 3 Mar 2008 14:16:44 -0800
On 3 Mar '08, at 1:10 PM, aldo kurnia wrote:
Given a window's TITLE, how do you create a reference to it,
determine what kind of application the window is (the name of the
application/executable)? and how do you move that window to the front?
Applications run in protected memory spaces. There's no way to get
direct access to windows of other processes. (This is a Good Thing for
system security.)
Applescript is also not very useful since the application I'm trying
to support doesn't support some of the basic window scripts.
The UI scripting support might help; its AppleScript commands end up
generating fake UI events in the target app, so you can manipulate
even apps that aren't scriptable. I don't know how to use that stuff,
though. Check the docs.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden