Re: Programmatically changing "Open using Rosetta" flag
Re: Programmatically changing "Open using Rosetta" flag
- Subject: Re: Programmatically changing "Open using Rosetta" flag
- From: Dirk Stegemann <email@hidden>
- Date: Tue, 14 Mar 2006 14:35:35 +0200
Hello,
Am 11.03.2006 um 18:10 schrieb Chris Espinosa:
On Mar 11, 2006, at 4:13 AM, Dirk Stegemann wrote:
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/>
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?
Regards,
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