AlanA 0 Posted October 12, 2016 Is there any way to print out a list of your notebooks, arranged by stack? I just want a handy one page reference, so that I can look at it when I'm using the @notebook field in email subject lines. A Share this post Link to post
jefito 5,333 Posted October 12, 2016 I don't know of any easy way to make a list of notebooks by stack, but using the Enscript.exe command line program, you can list out your notebooks using the command: enscript listNotebooks See https://dev.evernote.com/doc/articles/enscript.php#enscript for more info. 3 Share this post Link to post
AlanA 0 Posted October 12, 2016 Thanks Jeff, although it seems to output in a completely random order! Share this post Link to post
gazumped 6,905 Posted October 12, 2016 Hmmn. Was trying to pipe the output of that command to a text file to make it easier to sort, but I get 'access denied' a lot.. It's a while since I used the command line though... Share this post Link to post
jefito 5,333 Posted October 12, 2016 Don't use pipe ('|'), use redirection ('>')?? 1 Share this post Link to post
Dave-in-Decatur 913 Posted October 12, 2016 I can confirm that running "ENScript.exe listNotebooks > ntbklist.txt" (without the quotation marks) in a command prompt window created a text file called ntbklist.txt that listed all my notebooks. The order seems to be that in which they were created (!). At any rate, when I created a new notebook for test purposes, it appeared at the bottom of the list. 1 Share this post Link to post
gazumped 6,905 Posted October 12, 2016 6 hours ago, jefito said: Don't use pipe ('|'), use redirection ('>')?? My bad - so long since I used DOS in anger that I forgot the proper names. I was using '>' but called it wrong. Thanks to both though for confirming it works. @Dave-in-Decatur - with a text list my thought was that you can edit and sort it however you prefer. Share this post Link to post
dconnet 522 Posted October 13, 2016 On 10/12/2016 at 9:57 AM, jefito said: Don't use pipe ('|'), use redirection ('>')?? pipe will work. In a cmd window I just tried: enscript listNotebooks | sort and it worked as expected. You could then redirect that into a file... "enscript listNotebooks | sort > file.txt" 2 Share this post Link to post
jefito 5,333 Posted October 13, 2016 1 hour ago, dconnet said: it worked as expected Yep, you just need to remember to use pipe to send it through to another program (like sort), and not to a file. Didn't know what gaz was up to, so I was just taking a guess at the problem. Turns out he's got it, er, sorted. 2 Share this post Link to post
Dave-in-Decatur 913 Posted October 14, 2016 23 hours ago, dconnet said: pipe will work. In a cmd window I just tried: enscript listNotebooks | sort and it worked as expected. You could then redirect that into a file... "enscript listNotebooks | sort > file.txt" Brilliant! Works like a charm. Hope this will help @AlanA too. Share this post Link to post
Martin Pergler 1 Posted February 23, 2017 Sorry to resurrect old thread. I am using enscript listNotebooks as part of a script (based on https://discussion.evernote.com/topic/53536-how-to-backing-up-evernote-using-powershell/) to monthly export all my notes, organized into notebook .enex files. Paranoid, I know. As expected, listNotebooks outputs all the notebooks. The enscript documentation suggests using listNotebooks /t synced [resp. local] to get only normal synched versus only local notebooks. However, it seems shared notebooks are excluded from the synced list, even though they are included in the overall (no /t switch) list. Is this a bug or a feature? If the latter, what's the /t switch to get shared notebooks? I've tried the obvious, namely "shared" but that doesn't work. Thanks! Share this post Link to post
gazumped 6,905 Posted February 23, 2017 Hmmn. Haven't looked that far into the process. Under the hood information is only going to come from Evernote I think.. Share this post Link to post
jefito 5,333 Posted February 23, 2017 Doesn't make sense. Non-local notebooks that are part of the account are synced by definition, regardless of whether they're shared to someone else or not. Looks like an ENScript bug to me. Share this post Link to post