CoolTerm Script for Periodic Polling
Posted: Mon Jun 22, 2020 3:21 pm
Howdy Roger,
I'm new to Mac and am still learning AppleScript. I have some CS background but I'm trying to get ahead of a router issue.
I have a text file for some command lines to the router. I can successfully send the te4xt file (CT_Debug_Script.txt) to the serial port successfully to pull data that I'm logging. What I'd like to do is have CoolTerm do this automatically, say every 5 to to minutes.
I was a bit puzzled on the SendTextFile syntax, so I only have this so far:
I know this isn't right, I probably have to assign local variables to the window like you mentioned here, but I'm also wondering if I can create an empty if loop and set a delay for 300 seconds, for example, and then tell the script to terminate when I close the window.
I've had some experience with Terra Term scripting, but AppleScript is new ti me. Thanks for any help you can provide.
I'm new to Mac and am still learning AppleScript. I have some CS background but I'm trying to get ahead of a router issue.
I have a text file for some command lines to the router. I can successfully send the te4xt file (CT_Debug_Script.txt) to the serial port successfully to pull data that I'm logging. What I'd like to do is have CoolTerm do this automatically, say every 5 to to minutes.
I was a bit puzzled on the SendTextFile syntax, so I only have this so far:
Code: Select all
tell apllication "CoolTerm"
SendTextFile(1, /Users/zyxeltest/Desktop/EX5510 Console Logs/CT_Debug_Script.txt) 1
end tell
I've had some experience with Terra Term scripting, but AppleScript is new ti me. Thanks for any help you can provide.