• 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: Another Tiger mystery...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Another Tiger mystery...


  • Subject: Re: Another Tiger mystery...
  • From: Barry Wainwright <email@hidden>
  • Date: Thu, 28 Jul 2005 07:49:54 +0100
  • Thread-topic: Another Tiger mystery...

Title: Re: Another Tiger mystery...
On 27/7/05 21:37, "Paul Berkowitz" <email@hidden> wrote:

Do this:

        
tell application "Finder"
      set Window1Name to name of window 1
     close (get every window whose name ≠ Window1Name)
end tell

(Use explicit 'get').

Better still (but completely separate to Paul’s complete solution to the stated problem) would be to use a window’s ‘index’ property instead of it’s name:

tell application "Finder"
    close (get every window whose index > 1)
end tell


--
Barry

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Another Tiger mystery... (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Really dumb question . . .
  • Next by Date: Re: tiger problem with keychain scripting....
  • Previous by thread: Re: Another Tiger mystery...
  • Next by thread: Script editor feature
  • Index(es):
    • Date
    • Thread