Re: how to get bounds of X11 windows using Applescript?
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