Re: How to close finder window
Re: How to close finder window
- Subject: Re: How to close finder window
- From: "Paul F. Henegan" <email@hidden>
- Date: Fri, 3 Jun 2005 02:06:43 -0400
On 2 Jun, 2005, at 06:34, David Siberry wrote:
I have written a script that closes the finder window. However i dont
want the variable to be static, I want to be able to input this
variable dynamically via C or C++.
The script so far is:
tell application "Finder"
set theWindows to (get every Finder window)
repeat with eachWindow in theWindows
if (target of eachWindow as text) begins with "Mac OS X:" then
I believe that what you are looking for here is the "name" of
eachWindow.
close eachWindow
You can also write it this way:
"Tell eachWindow to close"
end if
end repeat
end tell
HTH,
paul
--
Paul F. Henegan
<mailto:email@hidden>
_______________________________________________
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