• 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
LSOpenFromURLSpec error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LSOpenFromURLSpec error


  • Subject: LSOpenFromURLSpec error
  • From: PCWiz <email@hidden>
  • Date: Tue, 15 Sep 2009 21:55:57 -0600

Hi,

I have created a minimal OS X boot stick (basically the Snow Leopard DVD with all the packages and installer stripped out). I've written a basic Cocoa app launcher to launch other apps that I put in the Applications folder (the minimal install lacks Dock and Finder).

When I try to launch an app I get this error:

LSOpenFromURLSpec() returned -10810 for application (null) path / Applications/MyApp.app

Where "MyApp.app" is the app I tried to launch. I've tried this with both NSWorkspace's openFile method and the UNIX "open" utility and I get more or less the same error. One way that launching an app works is if I just execute the main executable of the app itself. (e.g. / Applications/MyApp.app/Contents/MacOS/MyApp). However this method is kind of inconvenient as it stalls the launcher until the app I launched exits. Any alternate ways to launch an app (or fix the LSOpenFromURL error)?

Thanks
_______________________________________________

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


  • Prev by Date: Re: How to debug over-release of private Cocoa object?
  • Next by Date: NSString vs. unicode encoding
  • Previous by thread: Re: How to debug over-release of private Cocoa object?
  • Next by thread: NSString vs. unicode encoding
  • Index(es):
    • Date
    • Thread