• 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: Chris Espinosa <email@hidden>
  • Date: Sat, 11 Mar 2006 08:10:53 -0800


On Mar 11, 2006, at 4:13 AM, Dirk Stegemann wrote:

Dear all,

we've got software released (using ".pkg" files / Apple's installer) which is contains Universal Binaries and is capable of running natively on i386 Macs.
On the other hand, due to the fact that third-party software isn't available as Universal binary yet, some users have been forced to change one of our installed components to "Open using Rosetta" manually.

This constraint will be removed within the near future, then this specific component has be set to always run natively.

Therefore, I'd like to include a script / application which is called by our installer package's postflight script and programmatically disables the specific component's "Open using Rosetta" flag, just in case it had been changed by the user in the first place.

Is there an officially supported / recommended way to accomplish this?
Probably an AppleEvent sent to the Finder?
Preferably a command line tool to be called from within a shell script?
Should I post this question to another mailing-list (Carbon-Dev / Cocoa-Dev / ...)?

I'd try just calling /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister

to recopy your app's Info.plist settings into the Launch Services database, and make sure that the app's Info.plist has the key

<key>LSPrefersPPC</key> 
<false/> 

Chris
 _______________________________________________
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: Dirk Stegemann <email@hidden>
References: 
 >Programmatically changing "Open using Rosetta" flag (From: Dirk Stegemann <email@hidden>)

  • Prev by Date: Programmatically changing "Open using Rosetta" flag (Follow-up)
  • Next by Date: TWAIN_DS_Tester
  • Previous by thread: Programmatically changing "Open using Rosetta" flag (Follow-up)
  • Next by thread: Re: Programmatically changing "Open using Rosetta" flag
  • Index(es):
    • Date
    • Thread