geeknote icon indicating copy to clipboard operation
geeknote copied to clipboard

Attach a file during create?

Open dwlf opened this issue 9 years ago • 3 comments

I have a similar question as #160. I have a directory of png screenshots. I would like to use geeknote to upload each one to evernote. Is there an example of uploading images or pdfs?

dwlf avatar May 25 '15 23:05 dwlf

You could use a bash script like this:

for fff in *.png;
do
    geeknote create --title "$fff" --resource "$fff" --content "";
done;

This will upload all png files in the directory, creating a separate note for each. The title of the note will be the filename, and there will be no other text in the note.

jeffkowalski avatar May 25 '15 23:05 jeffkowalski

Thanks @jeffkowalski! When I get a chance I'll submit a pull request for the readme and help text.

dwlf avatar May 26 '15 00:05 dwlf

That doesn't work for me. I get: geeknote create --title "testtest" --resource "1.png" --content "Hello" Sorry, operation has failed!!!.

ghostwheel avatar Feb 21 '17 01:02 ghostwheel