• 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: getting bounds of terminal window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting bounds of terminal window


  • Subject: Re: getting bounds of terminal window
  • From: David Crowe <email@hidden>
  • Date: Mon, 21 Jul 2003 09:38:13 -0600

Phil;

I have "generic" routines to move/resize windows ... but a number of applications don't handle getting (or setting) bounds of window ... including Internet Explorer and ... I suppose ... Terminal.

Maybe eventually someone will fix the bug.

If anyone from Apple is listening, iTunes also has a bug, you have to set the "position of front window" (first two coordinates) before setting the bounds or it doesn't work properly.

Then there's FrameMaker which gets the coordinates backwards (and won't allow references to "window 1", you have to use "active document").

And, Acrobat that insists on using the class "PDF Window" instead of Window.

So, I guess the big 3 of software for the Mac all have their little troubles with this.

My "generic" move window script has these categories of exceptions and a silent "try" block to eliminate annoying messages (better to do nothing than pop up an error message on the screen).

- David Crowe


I can get the name of the terminal window and I can get the index of the
terminal window but I can't get the bounds of a terminal window.

tell application "Terminal"
bounds of window "bash"
end tell

Am I going about this wrong or is it broken?

TIA,

--Phil
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >getting bounds of terminal window (From: Philip A Calvert <email@hidden>)

  • Prev by Date: Re: Date - 1 day in Address Book
  • Next by Date: Re: Name of file or folder of current script...
  • Previous by thread: Re: getting bounds of terminal window
  • Next by thread: 4-character codes for MacOS special items [was: script in startup folder]
  • Index(es):
    • Date
    • Thread