• 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: enumerating open windows in Applescript?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: enumerating open windows in Applescript?


  • Subject: Re: enumerating open windows in Applescript?
  • From: Philip Aker <email@hidden>
  • Date: Tue, 24 Jun 2008 16:17:43 -0700

On 08-06-24, at 15:32, Bill Janssen wrote:

I'm trying to figure out how to write an Applescript which will give me the locations and titles of all the windows open on my OS X machine (10.5.3). In particular, I'm trying to track the location of Thunderbird windows.

Here is the starting script. You'll have to munge the resulting list for windows of interest.


tell application "System Events"
    set ew to every window of every application process
end tell

Cool, thanks. This produces some output, after enabling Assistive Access. But all the windows for X11, for instance, are missing.

I believe that's a different kettle of fish entirely and I don't know much about X11 windows. For instance if there is a native tool which reports window list info.


There may be a possibility using C level calls in CGWindow.h but that would be a question to pose on carbon-dev: <http://lists.apple.com/mailman/listinfo/carbon-dev >.

Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Re: enumerating open windows in Applescript? (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: AppleScript-Users Digest, Vol 5, Issue 382
  • Next by Date: Re: Is Image Events working under Leopard?
  • Previous by thread: Re: enumerating open windows in Applescript?
  • Next by thread: Re: AppleScript-Users Digest, Vol 5, Issue 382
  • Index(es):
    • Date
    • Thread