Although our newer Logic 2.x software does not yet support automation, this is possible via our older Logic 1.x software:
Specifically, you can use our ready-to-use command line utility tool below:
An example usage is as follows on Windows:
python saleae_cli.py --capture-count 24 --capture-duration 3600 --export-analyzers \Users\<Your User Name>\Desktop\export
Hope this helps!