• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: referring to global windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: referring to global windows


  • Subject: Re: referring to global windows
  • From: Nathan Day <email@hidden>
  • Date: Tue, 14 May 2002 14:34:24 +0930

This will only work with AppleScript enabled applications.

On Tuesday, May 14, 2002, at 07:35 AM, Brendan Younger wrote:

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.
_______________________________________________
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.

References: 
 >Re: referring to global windows (From: Brendan Younger <email@hidden>)

  • Prev by Date: Re: DO Proxy
  • Next by Date: Re: DO Proxy
  • Previous by thread: Re: referring to global windows
  • Next by thread: Re: referring to global windows
  • Index(es):
    • Date
    • Thread