• 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: Trouble with services
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble with services


  • Subject: Re: Trouble with services
  • From: Ken Thomases <email@hidden>
  • Date: Thu, 31 Jul 2014 23:11:31 -0500

On Jul 31, 2014, at 10:10 PM, Jon Baumgartner <email@hidden> wrote:

> My app has a service that gets invoked from the Finder. It works great, but I now have multiple versions of the app, and I can’t figure out how to change which one will open when the service is invoked.
>
> For example, I have one copy of my app in /Applications (the release one that’s on the app store), I have another one in an .xcarchive, and a third is the one I am currently developing. I want to be able to switch to the one in development, but every time I invoke it from the Finder, it opens the one in the .xcarchive.
>
> I thought this might be something pbs could do, but if it can, it wasn’t obvious.

You probably want lsregister.
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister

First, I'd try "lsregister -f /path/to/NewVersion.app".  If that doesn't change the behavior, you can do "lsregister -u /path/to/OldVersion.app".

Cheers,
Ken


_______________________________________________

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: 
 >Trouble with services (From: Jon Baumgartner <email@hidden>)

  • Prev by Date: Trouble with services
  • Previous by thread: Trouble with services
  • Index(es):
    • Date
    • Thread