• 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: Greg Hurrell <email@hidden>
  • Date: Tue, 14 Mar 2006 15:08:38 +0100

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.


lsregister: [OPTIONS] [-domain { system | local | user | network }]... [path]...
Search the paths for application bundles and add each found item to the Launch
Services database. For domain specifications, ask CF for the list of application
locations in the given domain(s).


-kill Reset the global Launch Services database before doing anything else
-lint Print information about plist errors while registering bundles
-convert Register apps found in older LS database files
-lazy n Sleep for n seconds before registering apps if the local cache
is aleady populated.
-r Recursively register directory contents, do not recurse into
packages or invisible directories.
-R Recursively register directory contents, including the contents
of packages and invisible directories.
-f force-update registration info even if mod date is unchanged
-v Display progress information.
-dump Display full database contents after registration.
-h Display this help.



Attachment: smime.p7s
Description: S/MIME cryptographic signature

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

  • Prev by Date: RE: GDB not stopping at breakpoints
  • Next by Date: Re: How to change an application's name?
  • Previous by thread: Re: Programmatically changing "Open using Rosetta" flag
  • Next by thread: Re: Programmatically changing "Open using Rosetta" flag
  • Index(es):
    • Date
    • Thread