LaunchServices is opening all programs with the same name, even if a specific path is specified.

Posted by Andrew on Stack Overflow See other posts from Stack Overflow or by Andrew
Published on 2010-04-06T02:32:09Z Indexed on 2010/04/06 2:43 UTC
Read the original article Hit count: 271

Filed under:
|
|
|

I have two applications: /Applications/VLC.app /Applications/SomeDirectory/VLC.app

When I run:

[[NSWorkspace sharedWorkspace] openFile:nil withApplication:@"/Applications/VLC.app"];

It opens both of them.

I do not want it to do this, obviously, since I specified a specific path.

What is going on here?

© Stack Overflow or respective owner

Related posts about osx

Related posts about xcode