On 2006-09-20, at 12:52:10, Ruby Madraswala wrote:
Can I set location or size of other windows? Ex. in illustrator can
I set location and size, then open a file or open a file and then
set location and size?
Hi Ruby,
The following shows how to access every kind of window that is
available (and visible) and set its location and size:
tell application "System Events"
set anames to name of every application process whose visible is true
repeat with a in anames
tell process a
set wcount to count of windows
if (wcount > 0) then
repeat with w from 1 to wcount
tell window w
set position to {0, 22}
set size to {360, 360}
end tell
end repeat
end if
end tell
end repeat
end tell