• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to close finder window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How to close finder window (From: David Siberry <email@hidden>)

  • Prev by Date: Trying to select some pesky pixels in Photoshop
  • Next by Date: Subress XML declaration in XMLLib
  • Previous by thread: Re: How to close finder window
  • Next by thread: QXPScriptingAdditions
  • Index(es):
    • Date
    • Thread