Serial Port List

Hi, I’m using this code to select a serial port, when I run it I get the following list.

/dev/cu.Bluetooth-Modem
/dev/cu.usbmodem3a21
/dev/cu.Bluetooth-PDA-Sync

What I want it to say is:
/dev/tty.usbmodem3a21

I have no idea what the “cu” or “tty” means but I know that I need the tty version.

Maybe I could still use my code and then modify the string

Any thoughts?

Thanks.

Phil


set thePorts to serialport list
set port_name to choose from list thePorts

One workaround is to do this as a shell command.

set mdm to do shell script “ls /dev/tty.usb*”

Which work, not ideal but it works.