Re: Opening Finder window from another app
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.