• 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: 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.

References: 
 >Opening Finder window from another app (From: Chad Armstrong <email@hidden>)

  • Prev by Date: Re: Custom accessible Cocoa controls
  • Next by Date: Re: JPEG from NSBitMapImageRep Mangled --- Kind Of Solved
  • Previous by thread: Re: Opening Finder window from another app
  • Next by thread: Opening Finder window from another app
  • Index(es):
    • Date
    • Thread