Re: Another Tiger mystery...
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