• 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
How to close finder window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to close finder window
      • From: "Paul F. Henegan" <email@hidden>
    • Re: How to close finder window
      • From: Mark Pauley <email@hidden>
  • Prev by Date: Re: ANN: String to Property Coercion subroutines released
  • Next by Date: Re: Adding To A List
  • Previous by thread: Automator & obj-c methods
  • Next by thread: Re: How to close finder window
  • Index(es):
    • Date
    • Thread