- Open AppleScript
- Paste the
xcode-select-install.osa
script into the edit. - Save the file as
xcode-select-install.app
, select "Application" from the "File Format" option.
It's important the app is saved with exact name specified or it won't be able to skip the accessibility confirmation when run.
Seeing LSOpenURLsWithRole() failed with error -10810 for the file /var/tmp/xcode-select-install.app
?
Run: command "chmod +x xcode-select-install.app/Contents/MacOS/applet"