MicheleCotrufo / pdf-renamer

A python tool to automatically rename the pdf files of scientific publications by looking up the publication metadata on the web.
132 stars 21 forks source link

Error in path #4

Closed zazutheadviser closed 2 years ago

zazutheadviser commented 2 years ago

I'm trying to run the script from prompt as described to rename a pdf in my desktop.

The code I'm inputing in cmd is: pdfrenamer 'path/to/C:\Users\MyUser\Desktop'

Is this supposed to work? What's my mistake? Thanks!

MicheleCotrufo commented 2 years ago

Hi, you need to remove the 'path/to' part, just run

pdfrenamer 'C:\Users\MyUser\Desktop'

Note that this command will rename all pdf files in the desktop folder. If you want to rename only a specific file, run

pdfrenamer 'C:\Users\MyUser\Desktop\filename.pdf'

zazutheadviser commented 2 years ago

Allright, now it worked perfectly, thanks. There is a way to run the script automatically in files that are downloaded to a specific folder, but without renaming the older pdfs that already has been renamed?

MicheleCotrufo commented 2 years ago

It's something I want to implement in future versions, but right now is not possible. If you want to experiment yourself you can use pdfrenamer from a python script, and create yourself a script which monitors a folder.

zazutheadviser commented 2 years ago

Understood, great! Thanks!