Re: setting finder window positions
Re: setting finder window positions
- Subject: Re: setting finder window positions
- From: Nigel Garvey <email@hidden>
- Date: Fri, 23 Feb 2001 02:34:11 +0000
"Nathan Ardoin" wrote on 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
I think this is similar to something that cropped up the other day.
Settings like 'true', 'false', and {0, 45} are actual *values* that the
Finder can assign to window properties en masse. 'Name', however, is a
special setting of a window's 'view' property. It's also a property in
its own right - of files, folders, windows, etc., and it may just be that
the Finder doesn't know what to do here. If you change 'name' to its
numerical alternative, the line will work with multiple windows.
tell application "Finder"
activate
set view of every window whose visible is true and zoomable is true to 2
-- etc.
end tell
NG