• 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: Opening Finder window from another app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opening Finder window from another app


  • Subject: Re: Opening Finder window from another app
  • From: Nick Zitzmann <email@hidden>
  • Date: Fri, 20 Jun 2003 23:36:47 -0700

On Friday, June 20, 2003, at 09:57 AM, Chad Armstrong wrote:

How can I open up a Finder window (particularly a selected directory) from another application? This would be a similar effect of most web browser download managers which have a Show in Finder.

Two ways I can think of doing this, assuming you're using AppKit:

1. Use NSAppleScript and send an event to the Finder telling it to activate and open a window with some directory.

2. Use NSWorkspace's -selectFile:inFileViewerRootedAtPath: method.

Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page: http://dreamless.home.attbi.com/

"Great spirits have always encountered violent opposition from mediocre minds." - Albert Einstein
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >Opening Finder window from another app (From: Chad Armstrong <email@hidden>)

  • Prev by Date: Re: NSDocument without Title - Solved
  • Next by Date: Re: NSRunLoop vs. CFRunLoop
  • Previous by thread: Opening Finder window from another app
  • Next by thread: Re: Opening Finder window from another app
  • Index(es):
    • Date
    • Thread