When I take a screenshot on my Macbook Pro or Macbook Air, it is saved on my desktop for some reason. In particular, with the online lessons of university students, I think the number of screenshots has increased dramatically. At least I'm not the only one to sort out the bunch of screenshots that fill my desktop when I'm busy just before the final exams.
In such a poor situation, it is not like us who are touted as digital natives. I'm sure he will do something about it. Yes, with our Python!
tl;dr --I made a tool for Mac that can automatically sort screenshots according to the lesson with Python! --It's a daemon, so once you start it, it will work as long as you don't turn off the power! ――It can be installed with pip and it is easy to operate, so everyone can put it in!
Once again, hello. It's delicious. This time, I made an automatic screenshot organizing tool using Python. Since it was originally made for my personal computer, it is only compatible with mac. Please note.
I want as many people as possible to use it, so I'll talk about how to use it in the first half of the article and how to implement it in the second half. If you are busy or just want to use it for the time being, please see github for a brief explanation.
pip3 install Sukusho
Enter with. As soon as a bug is found, we will update the fixed version, so sometimes
pip3 install Sukusho -U
I would be happy if you could do it.
First, open the terminal,
sukushoinit
please. Then first,
[now:~/Desktop]:press enter or input savedir path
You will be asked where you want to save the file. By default, it is saved on the desktop. If you don't mind, type enter, and if you want to change it, type the absolute path to that folder.
Next, Excel should come out like this.
Let's type in the classes we are taking here like this.
Please leave empty frames blank. The time in jigen 01:23~04:56 You can change it as long as you match the format of!
Now let's run the test.
sukusho -t
here,
Your sukusho is ready!
Is OK when it comes out! It's finally up and running. If you want to move it only once
sukusho -e
When you want to make it a daemon
sukusho -start
And the system will start running! If you want to stop the daemonized system,
sukusho -kill
Let's type. If you want to change the save destination
sukusho -es
If you want to change the timetable,
sukusho -ej
You can do it with.
This implementation is roughly divided
-Creation and editing part of configuration file -File operation part --Daemonized part
It consists of three parts. @ KosukeJin's article is very nice for the daemonization part, so please read it! I have a separate article about the other two. Please see if you are interested.
Thank you for reading to the end! If you have any reports of errors or bugs, please contact us on github issue or twitter!
Recommended Posts