Re: getting bounds of terminal window
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.