• 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: Kyle Sluder <email@hidden>
  • Date: Fri, 01 Aug 2014 00:01:39 -0700

On Jul 31, 2014, at 9:11 PM, Ken Thomases <email@hidden> wrote:
>
>> 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".

Also, Launch Services supposedly picks the bundle with the highest CFBundleVersion. So make sure that differs between all the versions you have installed.

--Kyle Sluder

_______________________________________________

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


  • Follow-Ups:
    • Re: Trouble with services
      • From: Jon Baumgartner <email@hidden>
  • Next by Date: Re: Trouble with services
  • Next by thread: Re: Trouble with services
  • Index(es):
    • Date
    • Thread