Operating system
Windows
Joplin version
2.13.12
Desktop version info
CLI version
What issue do you have?
I used ChatGTP to help with creating a Windows batch file to use the Joplin CLI to iterate through a folder of Evernote exports (*.enex files) and import them.
It seems to have run (sample output below), but I can't find where it has imported the .md files to, or when I open Joplin nothing is there either.
Here's the script:
--
@echo off
setlocal enabledelayedexpansion
REM Set the path to the folder containing the ENEX files
set "ENEX_FOLDER=D:\Evernote Export"
REM Set the path to the output folder
set "OUTPUT_FOLDER=D:\Evernote Export\output"
REM Iterate through each ENEX file in the folder
for %%F in ("%ENEX_FOLDER%*.enex") do (
REM Import the ENEX file into Joplin using the Joplin CLI
joplin import "%%F" --format enex --output-format md --output "!OUTPUT_FOLDER!"
)
--
There are some errors here and there but I have got some output that seems to indicate something worked, example:
Line 4:61112: Invalid CSS value: undefined:1:966: property missing ':'
Line 4:61112: Invalid CSS value: undefined:1:966: property missing ':'
Line 4:61112: Invalid CSS value: undefined:1:966: property missing ':'
Found: 22. Created: 22.
The notes have been imported: Found: 22. Created: 22.
Other errors I've seen are:
Unsupported start tag: dfn
Line 0:1063215: Found a tag outside of a
Unhandled object type: {
type: 'tr',
lines: ,
parent: {
type: 'text',
lines: [
'[[BLOCK_OPEN]]',
..
...
Where are these notes imported to??
Does anyone have a better script, perhaps one that can handle the errors.