SetArchPrefForURL
SetArchPrefForURL copied to clipboard
A CLI utility to "check" or "uncheck" "Open Using Rosetta" preference for Apple Silicon macs.
SetArchPrefForURL
A CLI utility to "check" or "uncheck" "Open Using Rosetta" preference for Apple Silicon macs.

Usage:
SetArchPrefForURL <path-to-the-app> <x86_64|arm64>
How does this work ?
The CLI tool calls a private function _LSSetArchitecturePreferenceForApplicationURL defined in CoreServices.framework. This is same way that Finder.app updates the preference.
