How to close finder window
How to close finder window
- Subject: How to close finder window
- From: David Siberry <email@hidden>
- Date: Thu, 2 Jun 2005 11:34:10 +0100
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
close eachWindow
end if
end repeat
end tell
I want the "Mac OS X" bit to be dynamic. Perhaps using a "\%s\"
But i dont know in C how to obtain the path of the window.
Can anyone help?
Cheers
David
_______________________________________________
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