I have an osascript I want to wait for input before proceeding to next line, I THINK I need to do a set T in it but It keeps failing...
#!/bin/bash
loggedInUser=$(stat -f%Su /dev/console)
loggedInUID=$(id -u $loggedInUser)
if [[ "$loggedInUser" != "root" ]] && [[ "$loggedInUser" != "_mbsetup" ]]; then
## Create local script
cat << EOD > /private/tmp/computerrenamescript.sh
#!/bin/bash
TT=$(/usr/bin/osascript -e 'tell application "System Events" set T to set MacTYPE to text returned of (display dialog "Please input the machine type - " default answer "" with icon 2)')
BB=$(/usr/bin/osascript -e 'tell application "System Events" to set BRAND to text returned of (display dialog "Please input the brand - "" with icon 2)')
.
.
.
Any help is appreciated!