Jump to content

Welcome! You're currently a Guest.

If you'd like to join in the Discussion, or access additional features in our forums, please sign in with your Evernote Account here. Have an Evernote Account but forgot your password? Reset it! Don't have an account yet? Create One! You'll need to set your Display Name before your first post.

Photo

Using ENScript to create note without text contents, just attachments


  • Please log in to reply
4 replies to this topic

#1 jontyc

jontyc

  • Pip
  • Title: Member
  • Group: Members
  • 14 posts

Posted 30 June 2012 - 03:23 AM

I've just made a little python script to automatically import my photos into Evernote, most importantly with the created date matching the date the photo was taken.

To do that (on Windows), I used ENScript.exe as it supported the setting of the created date, where as Evernote.exe didn't appear to.

That's all happily working, however I have to supply dummy text to add to the note as well which I don't particularly wish. I just wish the note to contain a single image. ENScript won't accept an empty contents file with its /s option.

Is there any way past this?

Or should I just move over to the AppleScript interface, it seems to be a lot more flexible?

#2 Paul Courtney

Paul Courtney

  • Pip
  • Title: Member
  • Group: Members
  • 2 posts

Posted 09 October 2012 - 10:41 PM

Did you try to use the /a option instead? I've not tried any of the command line stuff as yet but have seen the set of options that includes /a for attachments - http://www.thoughtas...in-windows.html

#3 jontyc

jontyc

  • Pip
  • Title: Member
  • Group: Members
  • 14 posts

Posted 09 October 2012 - 11:00 PM

I am using the /a option to attach a photo to a note. Unfortunately ENScript required me also to supply a plain text contents file with the /s option, and it couldn't be an empty file.

So I had to put a dummy character in it (and a space wasn't allowed).

But putting a dummy character in it means the snippet view in Evernote will not only show that dummy character but reduce the size of the thumbnail as well.

Anyway after getting all my photos in, I decided Evernote just wasn't suitable as a photo repository (despite the attraction of having all material in one place and tagged).

#4 Paul Courtney

Paul Courtney

  • Pip
  • Title: Member
  • Group: Members
  • 2 posts

Posted 10 October 2012 - 12:48 AM

Wow, too bad. Evernote seems like an (otherwise) ideal application for this. I've been intrigued by the use and development of templates, where I could design something I like in EN, export it to an "enex" file, and then use the command line tools to create a new note with that file providing the layout. I'm wondering if you could do something similar with a photo-note you created, with all the photo-specific info removed in the template, and then replaced with Python code? The difference from using the /a option would be that Python would create the base64 code of the image and insert it directly in the file. Just a thought,...

#5 dp_cal

dp_cal

  • Pip
  • Title: Member
  • Group: Members
  • 2 posts

Posted 24 November 2012 - 07:41 AM

********** Why not make /s completely optional????!!? ********

Doesn't it make sense that you may simply want to just attach a file and not have the contents of a plain text file inserted?

For awhile it seemed that it was possible to use /s with binary files (an image etc) -- the image showed up perfecty in the new note.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Clip to Evernote