Files
Andreas Vogel 306149a726 test
2026-02-16 15:28:29 +01:00

33 lines
867 B
Bash

#!/bin/bash
##########################################################################
# Shellscript : Uninstall Script
# Autor : Andreas Vogel, macenterprise gmbh, 11.06.2019
##########################################################################
set -x
askapp () {
/usr/bin/osascript <<EOF - 2>/dev/null
set strPath to POSIX file "/Applications/"
set f to (choose file with prompt "$1" default location strPath)
set posixF to POSIX path of f
tell application "Finder" to set filesDir to container of f as alias as text
set posixDir to POSIX path of filesDir
posixF
EOF
}
asknewdir () {
osascript <<EOF - 2>/dev/null
tell application "SystemUIServer"
activate
text returned of (display dialog "$1" default answer "")
end tell
EOF
}
app=$(askapp 'Bitte die Xcode Version auswählen') || exit
sudo xcode-select -s $app Contents/Developer