Weekly scheduled task


What would be the easiest way to run a scheduled task weekly? I see the current options are for daily/hourly.

I want to run a script each Monday morning only.

Ta Richard

Figured it out.

import datetime
today =
weekday = today.weekday()

if (weekday == 0):
    run my script

: )

sounds like that'll work!

Did it work?

Sure did :)


Where to you place that script for a Monday morning run? The command line in the Scheduled Tasks bar doesn't seem to allow multiple lines of code.

Put it in a file and then execute the file from the scheduled task.

How do implement "run my script"?

I've tried:

if (weekday == 0)

That doesn't seem to work. is not a valid import. If you're trying to import a file called and it's on your python path, then you need

import foo