SetArchPrefForURL
SetArchPrefForURL copied to clipboard
Can't run it with 'sudo'
if I run this command with 'sudo', its exit status is 0 but it doesn't enable 'Open with Rosetta' for the specific app.
The command applies a per-user setting, so you must run the command as the current user:
#!/bin/bash
consoleuser=$(stat -f%Su /dev/console)
App_List=(
"Adobe InDesign 2023"
"Adobe InDesign 2022"
)
for App_name in "${App_List[@]}"; do
sudo -u "$consoleuser" "$SetArchPrefForURL_binary" "/Applications/$App_name/$App_name.app" x86_64
done