Advertisement
Guest User

Untitled

a guest
Sep 8th, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. set baudList to {1200, 2400, 4800, 4800, 9600, 19200, 38400, 57600, 115200, 230400}
  2.  
  3. set baudRate to (choose from list baudList default items {38400})
  4.  
  5. tell application "Terminal"
  6.    
  7.     set serialDevices to (do shell script "ls /dev/cu*")
  8.    
  9.     set theDeviceList to (paragraphs of serialDevices) as list
  10.    
  11.     set theDevice to (choose from list theDeviceList)
  12.    
  13.     do script "screen " & theDevice & " " & baudRate
  14.    
  15.     display dialog "To quit you terminal session type <ctrl-a> then <ctrl-\\>"
  16.    
  17. end tell
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement