Re: referring to global windows
Re: referring to global windows
- Subject: Re: referring to global windows
- From: Brendan Younger <email@hidden>
- Date: Mon, 13 May 2002 18:05:11 -0400
>
On Monday, May 13, 2002, at 07:54 PM, Matthias Fripp wrote:
>
>
> So does this mean there is no way to get titles of windows or activate
>
> them if they aren't owned by your own application?
Wait a second, what about AppleScript? Admittedly, I'm no AppleScript
god, but can't you do something like:
tell application "Mail"
set titles to ""
repeat with i from 1 to the count of windows
set titles to titles & the name of window i & " "
end repeat
display dialog ("The names of all the windows are: " & titles)
buttons {"OK"} default button 1
end tell
Please excuse any inefficiencies in the code, but that's the basic
idea. I can't help you as far as putting this into your application,
but at least it's possible.
Brendan Younger
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.