Defina também a variável theUDID AppleScript como uma variável shell .
- Deixe
set theUDID to "123456"como está. -
Use este novo comando
do shell script:set theSerial to do shell script "theUDID=" & quoted form of theUDID & "; curl -sk https://something/api/udid/$theUDID | xmllint --format - | awk -F'>|<' '/<serial_number>/{print $3}'"
Isso também define a variável AppleScript theUDID como shell variável e, em seguida, a obtém do shell at o final do URL como $theUDID .