How do I close a Finder folder window?
How do I close a Finder folder window?
- Subject: How do I close a Finder folder window?
- From: "Joel May" <email@hidden>
- Date: Wed, 28 Aug 2002 04:16:49 -0500
I can open a finder window just fine, but when I try to close it, I get
an error.
tell app "Finder"
activate
set srcFolder to folder srcPath
open srcFolder -- Works! Window pops up.
.
close srcFolder -- Fails!
end tell
The error box is titled: "Execution Error"
Error box body:
Finder got an error: folder xxx of folder xxx of startup disk doesn't
understand the close message.
Without the close, I have about 20 open windows on my desktop at the end
of the script. Drives me crazy.
Please help.
Thanks in advance.
Joel
_______________________________________________
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.