Re: Opening Finder window from another app
Re: Opening Finder window from another app
- Subject: Re: Opening Finder window from another app
- From: Jeff Harrell <email@hidden>
- Date: Sat, 21 Jun 2003 01:44:03 -0500
There's probably a better way, but if worst comes to worst you could
always look into firing off an NSTask with the "open" command and the
(POSIX) path to your directory as the sole argument. That will open a
Finder window. Have to be careful about security, though; you'd have to
check first to make sure that the target is actually a directory, and
again to make sure it's not a package. Open will attempt to execute
files.
The *Right* way, though, would probably be via an Apple Event.
On Friday, June 20, 2003, at 11: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.
Chad Armstrong
email@hidden
_______________________________________________
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.
--
email@hidden
http://homepage.mac.com/jharrell
_______________________________________________
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.