• 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: how to get bounds of X11 windows using Applescript?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to get bounds of X11 windows using Applescript?


  • Subject: Re: how to get bounds of X11 windows using Applescript?
  • From: Bill Janssen <email@hidden>
  • Date: Sun, 22 Jun 2008 14:23:30 PDT
  • Comments: In-reply-to Harald Hanche-Olsen <email@hidden> message dated "Sun, 22 Jun 2008 13:39:40 -0700."

> + Bill Janssen <email@hidden>:
>
> > Here's another Applescript question:  how can I get the windows bounds
> > of my X11 windows using Applescript?
>
> X11 doesn't have any Applescript dictionary, so I rather doubt there
> is any easy way to get it. In the X11 world there is xwininfo. Try
> running the command
>
>   xwininfo -root -tree
>
> for example: It will give you geometry information for all X11
> windows. I have no idea how to parse the output using applescript,
> though.

Sure, I've got 15-year-old code to do that; I was hoping, though, that
Apple X11 (or perhaps quartz-wm) might be more Applescript-friendly.
It also seems reasonable (to me) to assume that one should be able, in
Applescript, to get the bounds of the focussed window, regardless of
what the app is.  Perhaps something in 'System Events'.

Bill
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      (email@hidden)

This email sent to email@hidden

References: 
 >can't access 'System Events' because X11Application can't be found? (From: Bill Janssen <email@hidden>)
 >Re: can't access 'System Events' because X11Application can't be found? (From: Jeremy Huddleston <email@hidden>)
 >how to get bounds of X11 windows using Applescript? (From: Bill Janssen <email@hidden>)
 >Re: how to get bounds of X11 windows using Applescript? (From: Harald Hanche-Olsen <email@hidden>)

  • Prev by Date: Re: how to get bounds of X11 windows using Applescript?
  • Next by Date: Display Resolution
  • Previous by thread: Re: how to get bounds of X11 windows using Applescript?
  • Next by thread: Re: can't access 'System Events' because X11Application can't be found?
  • Index(es):
    • Date
    • Thread