Jump to content
SebR

[solved] - Trouble with space in query terms with ENScript.exe

Recommended Posts

Hi,

What is the correct syntax if there is space in the query ?

start C:\Users\...\ENScript.exe showNotes /q tag:"tag test"
start C:\Users\...\ENScript.exe showNotes /q "tag:tag test"
Don't work :/

Share this post


Link to post

Hmmn.  I would've gone with ...tag:"tag test" - if that doesn't work,  being lazy,  I'd probably rename the tag to tag_test...  ;)

Share this post


Link to post

Actually it's for notebook query (for backup local notebook) , but issue is the same; and yes, I already replace space by an underscore ;) it works ; but I'd like to know if I'm doing it wrong or if it's a bug.

Share this post


Link to post

It may be a bug - I did the search in Evernote and tag:"tag test" is the right format to find a tag with a space,  but your experience suggests that ENscript might not be using it correctly...

Share this post


Link to post

Yes. In both case the ENScript query return (with the show command) notes with "tag:tag", beginning with "test". The quotes seem to be ignored.

Share this post


Link to post

EUREKA !

 

The quotes of the search query must be escaped with a backslash. And both syntax work.

 

start  C:\Users\...\ENScript.exe showNotes /q notebook:"\"100. Local\""

start  C:\Users\...\ENScript.exe showNotes /q "notebook:\"100. Local\""

  • Like 1

Share this post


Link to post

×
×
  • Create New...