AlanA 0 Posted October 12, 2016 Share 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 Link to comment
Level 5* jefito 5,598 Posted October 12, 2016 Level 5* Share 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. Link to comment
AlanA 0 Posted October 12, 2016 Author Share Posted October 12, 2016 Thanks Jeff, although it seems to output in a completely random order! Link to comment
Level 5* gazumped 12,137 Posted October 12, 2016 Level 5* Share 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... Link to comment
Level 5* jefito 5,598 Posted October 12, 2016 Level 5* Share Posted October 12, 2016 Don't use pipe ('|'), use redirection ('>')?? Link to comment
Level 5 Dave-in-Decatur 4,008 Posted October 12, 2016 Level 5 Share 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. Link to comment
Level 5* gazumped 12,137 Posted October 12, 2016 Level 5* Share 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. Link to comment
dconnet 529 Posted October 13, 2016 Share 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" Link to comment
Level 5* jefito 5,598 Posted October 13, 2016 Level 5* Share 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. Link to comment
Level 5* gazumped 12,137 Posted October 13, 2016 Level 5* Share Posted October 13, 2016 <groan> Link to comment
Level 5 Dave-in-Decatur 4,008 Posted October 14, 2016 Level 5 Share 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. Link to comment
Martin Pergler 3 Posted February 23, 2017 Share 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! Link to comment
Level 5* gazumped 12,137 Posted February 23, 2017 Level 5* Share 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.. Link to comment
Level 5* jefito 5,598 Posted February 23, 2017 Level 5* Share 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. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.