nanos / FediFetcher

FediFetcher is a tool for Mastodon that automatically fetches missing replies and posts from other fediverse instances, and adds them to your own Mastodon instance.
https://blog.thms.uk/fedifetcher?utm_source=github
MIT License
296 stars 215 forks source link

TIP when scheduling on Windows via Task Scheduler. #27

Closed p37307 closed 1 year ago

p37307 commented 1 year ago

If you copy and rename the script to the .pyw extension instead of the py, you can set it up in Windows Task Scheduler and it will run silent, without opening a console window, unlike regular . py files. Windows will use PYTHONW. EXE instead of PYTHON. EXE.

nanos commented 1 year ago

Interesting. I didn't know this. Are you able to file a PR?

p37307 commented 1 year ago

I've never done a PR before and will need to review how to do it.

nanos commented 1 year ago

OK, that's fine. I'll have a look at adding this to the README.

nanos commented 1 year ago

@p37307 I've just added a sentence. Can you check that is correct? I'm not familiar with Windows, so would appreciate confirmation.

p37307 commented 1 year ago

Yes, that looks fine. The only other thing, that could be mentioned, is the .pyw file can be used anytime you want the script to run windowless, not just in Task Scheduler. I don't know why in my original post I tied it so strongly to task scheduler.

nanos commented 1 year ago

Great. Thanks @p37307