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.
on idle
set runInterval to (15 * minutes)
tell application “Speedtest”
run
end tell
tell application “System Events”
tell process “Speedtest”
click menu item “Begin Test” of menu 1 of menu bar item “File” of menu bar 1
end tell
end tell
set c to time of (get current date)
set nextRun to runInterval - (c mod runInterval)
end idle
Any help would be super appreciated.
Model: MacBook Air
AppleScript: 2.7
Browser: Safari 537.36
Operating System: macOS 10.14