Re: Netscape Communicator - new window with properties?
Re: Netscape Communicator - new window with properties?
- Subject: Re: Netscape Communicator - new window with properties?
- From: Caleb Strockbine <email@hidden>
- Date: Tue, 19 Mar 2002 13:24:52 -0500
On Tuesday, March 19, 2002, at 05:44 AM, Applescript User Lewis wrote:
>> sets the position of new window to {894, 50, 99, 0}
>
> These coordinates do not make any sense to me.
open a window 894 pixels from the left, 50 pixels from the top, 99
pixels wide and 0 pixels high. Seems odd. Or is 0 height some
special shorthand?
Maybe it's supposed to be 99,0,894,50 ?
I mean, it is {x, y, w, h} isn't it?
I believe the correct format for the coordinates is {left, top, bottom,
right}.
That's what Mozilla wants, anyway, according to some quick testing with
the following:
tell application "Mozilla"
return the bounds of window 1
end tell
Create a window, make it fairly small, and move it into a corner of the
screen. Run the script above, noting the result. Move the window to
another corner, run the script, note results, etc.
Caleb Strockbine
_______________________________________________
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.