• 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: closing all but very specific windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: closing all but very specific windows


  • Subject: Re: closing all but very specific windows
  • From: Nigel Garvey <email@hidden>
  • Date: Wed, 3 Apr 2002 09:09:54 +0100

"Anthony Adachi" wrote on 2 Apr 2002 18:38:24 -0500:

>Does anyone know if it's possible to use the Finder's filtered 'whose'
>clause to close all windows except those of specific items even if there
>are other items which have the same names that we do want to close?
>
>What I mean is, let say for example you wish to keep a particular folder
>open all the time (by the way it doesn't have to be a folder as it could be
>any Finder item but let say for the sake of argument it is a folder's
>window). You don't want that folder's window to be closed by a close all
>command. However, there may be other Finder items/folders which have the
>same name as the folder you wish to keep open.

[...]
>What follows are just a few examples of which I tried...
>
>-----
>property items_toKeepOpen_paths : {(alias ((path to startup disk as string)
>& "cF:k2:"))}

This works with Mac OS 9.2.1:

property items_toKeepOpen_paths : {(alias ((path to startup disk as
string) & "cF:k2:"))}

tell application "Finder"
open items_toKeepOpen_paths -- bring the windows to the front
close (windows whose index > (count (result as list)))
end tell

NG
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: closing all but very specific windows (NG delivers again)
      • From: Mr Tea <email@hidden>
  • Prev by Date: Reading large texts
  • Next by Date: Re: Coordinating lists
  • Previous by thread: how to user formatter class?
  • Next by thread: Re: closing all but very specific windows (NG delivers again)
  • Index(es):
    • Date
    • Thread