I exported the following line of AppleScript code into an macOS application via the "Script Editor":
do shell script "open '/Applications/Google Chrome.app' --args --proxy-server=socks5://127.0.0.1:1080"
Then, inside the application bundle, I replaced the file Contents/MacOS/applet with a bash script file.
(I'm not familar with AppleScript, and want to modify the script directly without using the "Script Editor".)
The shell-script-based application has been working fine for years under Intel-based Macs.
However, when launching it under my new M2 Max MacBook Pro, macOS shows a window saying:
To open "xxxx", you need to install Rosetta. Do you want to install it now? Rosetta enables Intel-based features to run on Apple silicon Macs. Reopening applications after installation is required to start using Rosetta.
Why does macOS treat plain-text script as "Intel-based features" and insist on running it using Rosetta?
How can I run the bash script Application bundle on ARM-based Macs without Rosetta?
Thank you.