Hello,
How can I make the frontmost open window the selection that I will then place and resize by script ?? I tried �container window� but I get error message …
Thanks.
Hello,
How can I make the frontmost open window the selection that I will then place and resize by script ?? I tried �container window� but I get error message …
Thanks.
If you are referring to Finder windows, this might work.
tell application "Finder"
try
set bounds of front window to {0, 50, 400, 400} -- {left, top, right, bottom}
on error e
display dialog e buttons {"OK"} default button 1 with icon 0
end try
end tell
– Rob
Hello Rob,
Thanks for the code. In what dictionnary can I find «BOUNDS» ??
Glad it helped. Look in Finder’s dictionary: Window Classes > Window
– Rob