Re: Window basics...
Re: Window basics...
- Subject: Re: Window basics...
- From: Bill Briggs <email@hidden>
- Date: Thu, 13 Dec 2001 18:50:53 -0400
At 4:50 PM -0500 13/12/01, Marc K. Myers wrote:
tell application "Finder"
activate
set position of window 1 to {10, 50}
end tell
The frontmost window always has an index of 1.
In the Finder that's true. I wish it was the case for everything
else, but there are some exceptions out there that can throw you for
a bit of a loop on first encounter. One of my favourite applications,
FrameMaker, has much weirdness in this area. The window object
doesn't have a "name" property - go figure. And the document objects
are indexed in the order in which they were opened, not in the order
in which they are layered on the screen. The name of the document
includes the entire path, not just the name of the file. This is not
what we expect.
- web