RE: Window basics...
RE: Window basics...
- Subject: RE: Window basics...
- From: Joe Kelly <email@hidden>
- Date: Thu, 13 Dec 2001 10:35:05 -0800
In the olden days "set position of front window to {10, 50}" would do what
you want, but nowadays, popup windows are open and can be frontmost (damn
kids these days!), which probably isn't what you want. So you should iterate
the Finder's window list which appears to be z-sorted on AS 1.6, and do your
set position on the first non popup window.
tell application "Finder"
set found to false
repeat with i from 1 to count of windows
if not popup of window i then
set found to true
exit repeat
end if
end repeat
if found then
set position of window i to {10, 50}
end if
end tell
>
-----Original Message-----
>
From: Domains4Days.com [mailto:email@hidden]
>
Sent: Thursday, December 13, 2001 10:15 AM
>
To: email@hidden
>
Subject: Window basics...
>
>
>
Instead of the line below that picks a particular folder, how
>
can I select
>
THE FRONTMOST WINDOW (that's open) and apply changes to that one?
>
>
>
tell application "Finder"
>
activate
>
set position of container window of folder "MyFOLDER" of
>
disk "Main" to
>
{10, 50}
>
end tell
>
>
>
>
>
--
>
Thanks,
>
>
RevDave
>
http: //www.Domains4Days.com
>
_______________________________________________
>
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.