• 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: Checking If A Finder Window Is Already Open
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Checking If A Finder Window Is Already Open


  • Subject: Re: Checking If A Finder Window Is Already Open
  • From: kai <email@hidden>
  • Date: Fri, 19 Jan 2007 10:08:57 +0000


On 19 Jan 2007, at 05:24, Andrew Oliver wrote:

tell application "Finder"
activate
if not (exists Finder window "thisone") then
make new Finder window
set target of Finder window 1 to folder "thisone" of disk "drive1"
end if
end tell


Of course this check is crude - it would match any window called 'thisone", so if you're using a common folder name this test might not be sufficient, but you can add whatever check you're comfortable with.

I suppose one way of approaching that issue might be to address the folder itself:


tell application "Finder" to tell folder "thisone" of disk ¬
	"drive1" to if not (exists container window) then open

---
kai


_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden
References: 
 >Checking If A Finder Window Is Already Open (From: revDAVE <email@hidden>)
 >Re: Checking If A Finder Window Is Already Open (From: Andrew Oliver <email@hidden>)

  • Prev by Date: Re: Checking If A Finder Window Is Already Open
  • Next by Date: Re: Text items
  • Previous by thread: Re: Checking If A Finder Window Is Already Open
  • Next by thread: Re: Checking If A Finder Window Is Already Open
  • Index(es):
    • Date
    • Thread