• 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: Programmatically changing "Open using Rosetta" flag
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programmatically changing "Open using Rosetta" flag


  • Subject: Re: Programmatically changing "Open using Rosetta" flag
  • From: Dirk Stegemann <email@hidden>
  • Date: Wed, 15 Mar 2006 11:55:08 +0200

Hi,

Am 14.03.2006 um 16:08 schrieb Greg Hurrell:

El 14/03/2006, a las 13:35, Dirk Stegemann escribió:

This doesn't seem to work as expected...
In fact, I cannot see any effect of the call to lsregister.

That's my syntax:

/System/Library/Frameworks/ApplicationServices.framework/Versions/ Current/Frameworks/LaunchServices.framework/Support/lsregister '/ absolute/path/to/my/Application.app'

The 'LSPrefersPPC' flag is not recognised in favor of the user's Finder info selection.
When I copy the application using Finder, though, the newly created (and registered) application's Finder info flag changes reflects whatever "LSPrefersPPC" is set to.


Maybe this is a bug present in 10.4.3, but already fixed in a later version?

You probably want to use the -R and -f command-line switches. You can use the -dump switch to verify that your changes are being made to the Launch Services database.

Thanks for the info, but I still cannot see any effect. Using the "-v" option results in a message stating

lsregister: processing /absolute/path/to/my/Application.app
lsregister: registered /absolute/path/to/my/Application.app

The "-dump" option doesn't provide info about the registered application's properties (besides bundle identifier).

Seems I'm a bit stuck...

To verify, you can try the following:

- Open "/Applications/TextEdit.app/Contents/Info.plist"
- Add the new "LSPrefersPPC" sibling and set it to boolean value "NO"
- Open up TextEdit's Finder info and activate option "Open using Rosetta"
- Open Terminal window and type
you% /System/Library/Frameworks/ApplicationServices.framework/ Versions/Current/Frameworks/LaunchServices.framework/Support/ lsregister -f -v /Applications/TextEdit.app


- optionally, restart Finder, restart Computer, or do whatever you think might help to get the new flag recognised by LS

- Open up TextEdit's Finder info to verify the state of option "Open using Rosetta"

My applications behaves differently depending on whether it is opened using Rosetta, so I'm quite sure it's not just a problem with Finder not displaying that setting correctly in its Info window.
Additionally, I'm quite sure the "LSPrefersPPC" flag works fine in general, because I can use Finder to copy any application which has this flag added to its Info.plist file, and the newly created copy's flag reflects the plist setting correctly.


If someone might verify that this isn't just a problem with my system (DTS, Mac OS X 10.4.3 Build 8F1111), I will write a bug report...


Thanks, Dirk Stegemann









_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Programmatically changing "Open using Rosetta" flag
      • From: Eric Albert <email@hidden>
References: 
 >Programmatically changing "Open using Rosetta" flag (From: Dirk Stegemann <email@hidden>)
 >Re: Programmatically changing "Open using Rosetta" flag (From: Chris Espinosa <email@hidden>)
 >Re: Programmatically changing "Open using Rosetta" flag (From: Dirk Stegemann <email@hidden>)
 >Re: Programmatically changing "Open using Rosetta" flag (From: Greg Hurrell <email@hidden>)

  • Prev by Date: Re: One byte bool
  • Next by Date: Re: Programmatically changing "Open using Rosetta" flag
  • Previous by thread: Re: Programmatically changing "Open using Rosetta" flag
  • Next by thread: Re: Programmatically changing "Open using Rosetta" flag
  • Index(es):
    • Date
    • Thread