Date sites free dirty ones
Compiled statically typed languages are rarely used in such cases because popular ones usually require too much effort to write and run a simple script.
However some static languages can actually be used here easily instead of scripting ones, providing their usual benefits such as checking for types and typos. Earlier this year I discovered a nice tool called Time Snapper that sits in background and saves everything that happens on your screen by doing screenshots on regular time intervals.
Replay that hour, see the opened project, ah, now I remember.
Moreover, I even know a video codec that is just perfect for such screen captures: Screen Pressor!
So I want to convert sets of PNG images to video files compressed with that codec. Virtual Dub can do, when used manually via its UI, not sure about its command-line interface though.
As you can see the source code is quite short, clear and straightforward.
You don't see many type annotations and declarations, there is no boilerplate usually associated with statically typed languages. rdmd (which comes with main D compiler - DMD) will compile and run the program, caching the binary so that subsequent calls will skip compilation and run the ready binary straight away.
It can also collect some stats about apps you run and sites you browse.