• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: setting finder window positions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setting finder window positions


  • Subject: Re: setting finder window positions
  • From: Mr Tea <email@hidden>
  • Date: Thu, 22 Feb 2001 23:46:50 +0000

This from Nathan Ardoin - dateline 2/22/01 7.26 pm:

> 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.

It may well be a bug, Nathan, because it doesn't work with multiple windows
on my machine either (OS 9.1). Of course, there may be a subtle and fiendish
explanation of why this is so... I'm sure someone here can explain this
behaviour.

In the meantime, you can store a list of open windows in a variable, and
loop through the list, like this...

tell application "Finder"
activate
-- all on one line from here...
copy (every window whose visible is true and zoomable is true) as list
to WindowList
-- ...to here
repeat with w in WindowList
set view of w to name
set shows modification date of w to false
set shows size of w to false
set shows kind of w to false
set uses relative dates of w to false
set has custom view settings of w to true
set zoomed of w to true
set position of w to {0, 45}
end repeat
end tell

Delighted, as always, to know if there's a better or more elegant way...

Regards

Mr Tea
--
Brew of the day: Liptons Yellow Label with a dash of lemon, sipped slowly
amidst the Art Deco splendour of the Europa Cafe on the East side of
Wenceslas Square in Prague. And a plate of freshly-baked apple strudel on
the side. Mmmm...


References: 
 >setting finder window positions (From: "Nathan Ardoin" <email@hidden>)

  • Prev by Date: Re: magic integer converter number 62?
  • Next by Date: Re: 62/62 - no macgic integer converter number - just a mixing of classes!
  • Previous by thread: setting finder window positions
  • Next by thread: Re: setting finder window positions
  • Index(es):
    • Date
    • Thread