Cool AppleScripts for CoolTerm

If you have specific questions or problems with any of my Freeware applications, post them here.

Cool AppleScripts for CoolTerm

Postby roger » Fri Nov 09, 2012 2:19 am

This is a thread where everybody is invited to share AppleScripts they've written for CoolTerm.

I'll start with a blog post I've come across this year. It was written by Ashley Hughes and discusses using AppleScript with CoolTerm for datalogging. ... escript-2/
User avatar
Site Admin
Posts: 290
Joined: Fri Apr 24, 2009 12:41 am

Re: Cool AppleScripts for CoolTerm

Postby jnmaloof » Mon Oct 31, 2016 7:32 am

I have modified Roger's original script to enable input into excel and into google chrome. I also changed the way that the loop was done so that the applescript could be compiled into a clickable program. These are available at
Posts: 1
Joined: Wed Oct 19, 2016 8:22 am

Re: Cool AppleScripts for CoolTerm

Postby v1cph1rth » Thu Aug 20, 2020 9:01 am

I wrote a little AppleScript to:
-Scan the Serial Ports
-Connect to each serial port and perform a task
-Repeat for full list of Serial Ports

Took me a bit of fiddling, but figured it out and wanted to share. If you want it to just continuously run, you could put another Repeat loop around it. For example, I am using this to talk to a bunch of different microcontrollers over a USB Hub and check the status.

Code: Select all
tell application "CoolTerm"
   set w to LoadSetting #my directory path is inserted here normally
   set portCount to (SerialPortCount)
   set currentPort to GetCurrentSerialPort (w)

   repeat with n from 0 to portCount
      Disconnect (w)
      SetCurrentSerialPort {w, (portCount - n)}
      set currentPort to GetCurrentSerialPort (w)
      Connect (w)
   #Operational code for my intended use

   end repeat
end tell
Posts: 1
Joined: Thu Aug 20, 2020 8:44 am

Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest