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: Doug McNutt <email@hidden>
- Date: Sun, 22 Jun 2008 12:30:44 -0600
At 10:35 -0700 6/22/08, Bill Janssen wrote:
>
>% osascript -e 'tell application "Camino"' -e ' return bounds of first window' -e 'end tell'
>104, 22, 1133, 1024
>%
>
>But when I try it with X11:
>
>% osascript -e 'tell application "X11"' -e ' return bounds of first window' -e 'end tell'
>32:38: execution error: X11 got an error: Can't get bounds of window 1. (-1728)
>%
Have a look at the X11 dictionary. Open the X11 application with Script Editor will do it.
osascript << ENDSCRIPT
tell application "Terminal"
bounds of front window
end tell
ENDSCRIPT
Is the way I do it with Terminal.app. I donno if X11 actually supports bounds.
--
--> From the U S of A, the only socialist country that refuses to admit it. <--
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden