tell application "PortTerm" activate connect to port "cu.modem" configure baud rate "2400" parity "none" write data "AT" format "atcm" delay 4 --give the modem some time to respond read -- read the responce --set the myData to the iData display dialog (iData as string) disconnect end tell