• 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: launching finder with optionschi
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: launching finder with optionschi


  • Subject: Re: launching finder with optionschi
  • From: Uli Kusterer <email@hidden>
  • Date: Tue, 17 Jun 2008 15:08:23 +0200

Am 16.06.2008 um 18:36 schrieb Memo Akten:
tell application "Finder"
	activate
	if not (exists Finder window 1) then
		make new Finder window to startup disk
	end if
	select Finder window 1
	set target of Finder window 1 to folder "documents" of home
	set current view of Finder window 1 to flow view
end tell


Don't reuse an already open window like that. The user may have a window open that they still want to use later. I'd recommend you always open a new window, or check in com.apple.finder.plist whether the option to open folders in a new window is on, and at least do it in that case.

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de





_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >launching finder with optionschi (From: Memo Akten <email@hidden>)
 >Re: launching finder with optionschi (From: Jens Alfke <email@hidden>)
 >Re: launching finder with optionschi (From: Memo Akten <email@hidden>)

  • Prev by Date: Re: Programatically placing panels inside a window
  • Next by Date: Re: iMovie HD like splash screen
  • Previous by thread: Re: launching finder with optionschi
  • Next by thread: Re: launching finder with optionschi
  • Index(es):
    • Date
    • Thread