• 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: Netscape Communicator - new window with properties?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Netscape Communicator - new window with properties? (From: Applescript User Lewis <email@hidden>)

  • Prev by Date: Re: Newbie question - listing items in the trash
  • Next by Date: AppleScript CGI Limitations
  • Previous by thread: Re: Netscape Communicator - new window with properties?
  • Next by thread: Working w Filemaker and the finder
  • Index(es):
    • Date
    • Thread