Schedule for more than one time each day

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
bobox
Newbie
Posts: 2
Joined: Tue Apr 19, 2022 8:23 am

Schedule for more than one time each day

Post by bobox » Sat Jul 16, 2022 5:25 pm

Hello,
I need to schedule the script to run at 01:00, 16:00 and 20:00 every day.

How do I do this in macro scheduler?

Thanks

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1106
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: Schedule for more than one time each day

Post by Dorian (MJT support) » Sat Jul 16, 2022 6:05 pm

You could set it to run every hour and then script it to only actually do something if the hour is 1, 16, or 20, and exit if it isn't :

Code: Select all

hour>TheHour
IF>{(%TheHour% = 1) OR (%TheHour% = 16) OR (%TheHour% = 20)}
   //do something
ELSE
   exit
ENDIF
Or even have three different scripts which call the main script, each one scheduled once daily for 1am, 4pm, and 8pm :

Code: Select all

Macro>%SCRIPT_DIR%\MyMoveFile.scp
Yes, we have a Custom Scripting Service. Message me or go here

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts