Batch import CSV to LyX
Import every *.csv file of the current directory into a new LyX file and save it with a *.lyx extension. Makes adding several tables to a single document easier later on. It’s a bit slow because the LyX GUI is started for every *.csv file and closed again after importing.
But it works!
for I in *.csv; do /Applications/LyX.app/Contents/MacOS/lyx --import csv $I --execute lyx-quit; done