setting finder window positions
setting finder window positions
- Subject: setting finder window positions
- From: "Nathan Ardoin" <email@hidden>
- Date: Thu, 22 Feb 2001 11:26:17 -0800
I don't know if this is a bug or not, but I wrote a small script to set all open windows of the finder to a certain position and view by name.. here is the part I get confused on, if I have only one window open then it does everything correctly, set window to view by name, zoom window, set position, etc.. if more than one window is open it does everything but set the window to view by name. I don't understand this because the syntax for all the other commands is the same, does anyone have any insight?
here is the code:
tell application "Finder"
activate
beep
set view of every window of application "Finder" whose visible is true and zoomable is true to name
set shows modification date of every window of application "Finder" whose visible is true to false
set shows size of every window of application "Finder" whose visible is true to false
set shows kind of every window of application "Finder" whose visible is true to false
set uses relative dates of every window of application "Finder" whose visible is true to false
set has custom view settings of every window of application "Finder" whose visible is true to true
set zoomed of every window of application "Finder" whose visible is true and zoomable is true to true
set position of every window of application "Finder" whose visible is true and zoomable is true to {0, 45}
beep
end tell
Thanx, in advance,
-nate