Hopefully, no discussions is a good thing.

Coordinator
May 20, 2011 at 10:15 PM

A quick note from Neal, author of this utility.  I have seen 78 downloads, and not a single person has asked a question or added an issue. 

This implies that it works great, and is very well documented, or the people that downloaded it haven't really used it.

Neal

Sep 1, 2011 at 5:30 PM

Hi Neal;

Sorry to bother but being a python dummy, I am getting the following error code when trying to convert my phatnotes db to be shipped to evernote AND I dont know how to troubleshoot???

 

^CC:\>CD CONVERTMYNOTES
C:\convertmynotes>PYTHON.EXE CONVERTER.PY billphatnotes9_1_11.csv N N N

Number of args = 50:CONVERTER.PY1:billphatnotes9_1_11.csv2:N3:N4:NTraceback (most recent call last):  File "CONVERTER.PY", line 85, in <module>    YNPhatPriority = sys.argv[5]IndexError: list index out of range

C:\convertmynotes>PYTHON.EXE CONVERTER.PY billphatnotes9_1_11.csv Y Y YNumber of args = 50:CONVERTER.PY1:billphatnotes9_1_11.csv2:Y3:Y4:YTraceback (most recent call last):  File "CONVERTER.PY", line 85, in <module>    YNPhatPriority = sys.argv[5]IndexError: list index out of range
C:\convertmynotes>

 

I've looked at the converter.py file and don't know if and how I should change to make it work.??

Ideas?

Thanks for the code.

 

bill

Coordinator
Sep 2, 2011 at 12:52 AM
Edited Sep 2, 2011 at 12:53 AM

Bill,

   You are missing a parm... I guess I should count parms and give a more clear error there.

 

Here is the doc:

convert XXXXXX PhatNotes20110815DatabaseNameXX.csv Y Y Y

where the parms are as follows:
1) Database name from PhatNotes - this will automatically create an
evernote tag called PhatNotesDatabase=XXXXXX.
Purpose: If you have several Phatnote databases, this is one way
you can find/separate the notes in EverNote. Eventually,
you may choose to create an EverNote foler for each PhatNote database.
If you dont' like the name "PhatNotesDatabase=XXXXX", you can edit it
in Evernote after you have uploaded.

DatabaseName Shortcuts:
There are three variables you can specify for the filename:
$BASEFILENAME
$AFTERLAST_
$BEFOREFIRST_
These can be useful if you are uploading several databases,
and you include the database name in your CSV filename when you export it.
It simply saves you from having to specify the database name twice.

Let's suppose you exported your CSV from PhatNotes as MyDatabase1.csv.

Instead of running:
c:\python26\python.exe MyDatabase1 MyDatabase1.csv N N N

you can specify:
c:\python26\python.exe $BASEFILENAME MyDatabase1.csv N N N

NOW Applying the doc to your issue:

You omitted the database name parm, the first parm before your .csv filename.

Change: PYTHON.EXE CONVERTER.PY billphatnotes9_1_11.csv N N N

TO: PYTHON.EXE CONVERTER.PY PhatNotesUpload billphatnotes9_1_11.csv N N N

    where PhatNotesUpload is the name of the database you are converting (or basically the tag name you want to slap on everything you upload).

Evernote doesn't have multiple database, but it does have multiple tags.
The purpose of this was to maintain your Phatnotes Database name inside of Evernote by using a tag.

 

Neal