dyuhas 12 Posted August 26, 2011 Share Posted August 26, 2011 I've discovered (or at least I think I have) an undocumented limitation to the Enscript exportNotes command: if the notebook name contains a space, then Enscript will not create the output file, and it will not display an error message. I've tried enclosing the query string in quotes (/q "notebook:Reading List - Books" or notebook:"Reading List - Books") to no avail. But when I changed the name of the notebook to Reading_List_Books then Enscript created the output file.Must notebooks be named without spaces for exportNotes to work as advertised? Is this common knowledge that I've failed to pick up on?One more thing, does Enscript return an errorlevel? Link to comment
Level 5 emerick 155 Posted August 26, 2011 Level 5 Share Posted August 26, 2011 Must notebooks be named without spaces for exportNotes to work as advertised? Is this common knowledge that I've failed to pick up on?It's a bug in ENScript and it seems that renaming the notebook to remove the spaces is the only viable workaround. We'll address the bug in a future release. Thanks for pointing it out!One more thing, does Enscript return an errorlevel?ENscript returns 0 on success and 1 on failure. Link to comment
z0rl2c 2 Posted September 13, 2012 Share Posted September 13, 2012 Any word on a fix yet? Link to comment
Level 5* jefito 5,598 Posted September 13, 2012 Level 5* Share Posted September 13, 2012 Appears to still be a bug. Return value of enscript.exe in this case is non-zero (i.e., an error). Link to comment
Guest mrossk Posted July 15, 2013 Share Posted July 15, 2013 Seems not be fixed until now. Link to comment
Level 5 emerick 155 Posted November 19, 2013 Level 5 Share Posted November 19, 2013 You can make this work by quoting the notebook parameter as follows: enscript exportNotes /q notebook:\""Reading List - Books"\" To make the specific characters I'm using more obvious, I'll insert some spaces between them below for clarity (but don't do that when running the command ) notebook: \ " " Reading List - Books " \ " Link to comment
Level 5* jefito 5,598 Posted November 19, 2013 Level 5* Share Posted November 19, 2013 Wow, I'm not sure that I would have ever guessed that that combination would work. The following works as well: enscript showNotes /q notebook:"\"Test Notebook"\" or, in expanded form: notebook: " \ " Test Notebook " \ " Which is a little more consistent, somehow.Thanks for tracking that one down. Link to comment
PqHost Internet Services 5 Posted December 23, 2014 Share Posted December 23, 2014 I search for an hour on how to do this and hot damn if Emerick's fix didn't solve it!!! Link to comment
PqHost Internet Services 5 Posted December 23, 2014 Share Posted December 23, 2014 I wonder can this please be added to the page?? https://dev.evernote.com/doc/articles/enscript.php Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.