Re: Close all windows
Re: Close all windows
- Subject: Re: Close all windows
- From: Bruce Carter <email@hidden>
- Date: Wed, 11 Feb 2004 16:39:37 -0500
Try:
tell application "Finder"
close windows
end tell
On Feb 11, 2004, at 4:05 PM, Christopher MJ Tangora wrote:
I am having one heck of a time getting a finder window to close.
Everything I see says that this should work...
tell application "finder"
close every window
end tell
but when I run the script I get an error saying
Finder got an error: Some parameter is missing for close.
The extra odd part is when I record from finder that is the
instructions I get... close every window.
Aside from using a keystroke to close every window, how can I close
every window?
I just want to close every window open in the Finder. I have tried
the script above and this script...
tell application "Finder"
activate
set open_windows to count of windows
delay 1
repeat with i from 1 to open_windows
close window i
end repeat
end tell
Both of these scripts come back with the previously mentioned error.
Is this problem isolated to my local machine, or is this system wide?
My local machine is a dual 1.25 GHz G4 running OS X.3.
Thanks.
Chris Tangora
Desktop Specialist
Production Services
Daytona Beach News-Journal Corporation
Daytona Beach, Florida
_______________________________________________
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.
--
Bruce Carter, ACTC, MacCSE, MCP
http://www.nd.edu/~bcarter/
Senior Systems Engineer
mailto:email@hidden
Riley Hall of Art, Room 217 AIM:bcarteratnd
University of Notre Dame +1 574 631 2967 Voice
Notre Dame, IN 46556-0539 +1 574 631 8201 FAX
_______________________________________________
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.