Hi, total and complete newbie here.
I’m trying to automate running Speedtest (via Speedtest app) once an hour to gather data. I’ve got the following script, and exported to an app, with “Stay open after run handler” ticked.
If I have the runInterval set to (1 * minutes) it seems to loop ok, but anything other than 1 minute it doesn’t repeat after the initial launch of the application.
set runInterval to (15 * minutes)
tell application “Speedtest”
tell application “System Events”
tell process “Speedtest”
click menu item “Begin Test” of menu 1 of menu bar item “File” of menu bar 1
set c to time of (get current date)
set nextRun to runInterval - (c mod runInterval)
Any help would be super appreciated.
Model: MacBook Air
Browser: Safari 537.36
Operating System: macOS 10.14