How to execute automatically a Python script using Windows Task Scheduler whenever a file downloaded from a Browser?

Question:

I wrote a script using Python and I want it to be executed every time I download a file. So, I thought about using windows Task Scheduler.

However, I don’t know how to implement this. I did some research, but I found nothing.

So, the end goal is that the Task Scheduler will start executing that python script as soon as a file downloaded from a browser.

Do you have any idea how to do it?

Asked By: leeuw

||

Answers:

What you should do is to implement downloads.onChanged callback.
With this, Edge will call your code when a file is being downloaded.
Note that the implantation is based on javascript.

Answered By: balderman