• 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: 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

  • Follow-Ups:
    • Re: how to get bounds of X11 windows using Applescript?
      • From: Bill Janssen <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>)

  • Prev by Date: how to get bounds of X11 windows using Applescript?
  • Next by Date: Re: how to get bounds of X11 windows using Applescript?
  • Previous by thread: how to get bounds of X11 windows using Applescript?
  • Next by thread: Re: how to get bounds of X11 windows using Applescript?
  • Index(es):
    • Date
    • Thread