• 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: How to show a file in Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to show a file in Finder


  • Subject: Re: How to show a file in Finder
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Mon, 31 Oct 2016 20:26:56 +0700

> On 31 Oct 2016, at 17:13, sqwarqDev <email@hidden> wrote:
>
> You want NSWorkspace's selectFile:  inFileViewerRootedAtPath: method
>
> rather than openFile: with Application
>

You are absolutely right.
Thanks for your help!

Kind regards,

Gerriet.

>
> Best
>
>
> Phil
>
>
>> On 31 Oct 2016, at 17:00, Gerriet M. Denkmann <email@hidden> wrote:
>
>
>>
>>
>> I want to show a file in Finder (not open it in some application).
>>
>> I tried:
>> 	NSString *path = @“/some/thing.plist”;
>> 	[ sharedWorkspace openFile: path  withApplication: @“Finder.app" ]
>> but this opens Xcode and displays the content of path.
>>
>> I just want a Finder window with my path selected.
>> How can this be done?
>>
>> (Preferably without using AppleScript).
>>
>> macOS 12.1
>>


_______________________________________________

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: 
 >How to show a file in Finder (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: How to show a file in Finder (From: sqwarqDev <email@hidden>)

  • Prev by Date: function signature specialization crashlog
  • Next by Date: Re: Prioritizing drawing of the important stuff
  • Previous by thread: Re: How to show a file in Finder
  • Next by thread: Re: How to show a file in Finder
  • Index(es):
    • Date
    • Thread