Create a PDF from many text files in one folder

Robert's Avatar


02 Jun, 2018 08:29 AM


After many attempts with Day One, BearApp, DiaryApps, NoteApps, Things, and many other apps... I've been back at iA Writer for a few weeks (after years) and especially at Markdown. I use Mac, iPad and iPhones.

My problem: I have a folder "Diary" and below in folder "2017", "2018" the respective day entries, an MD text file for one day. How can I export all entries/text files from the 2018 folder to a single PDF using MarkedApp? With the multiple file commands (like iAWriter Block Content) yes possible, but I have to quote the file name of each text file.

Is there something like "/2018/*.md"? or a possibility to evaluate a text "tag:diary" in text files and create the PDF with it?

I am grateful for every tip, maybe a combination of AppleScript and MarkedApp is possible?

Best regards Robert from Austria!

  1. Support Staff 1 Posted by Brett on 02 Jun, 2018 11:21 AM

    Brett's Avatar

    Well, I do have a Service that will create an index file for Marked

    Using the command line version of that, you can use `ls -t1` to pass the
    filenames in date order, or use regular `ls -1` if they're named in ISO
    date format ( and would be in the right order


  2. 2 Posted by Robert on 03 Jun, 2018 09:23 AM

    Robert's Avatar

    Hello, Brett,

    excellent support, I couldn't test it so fast, thank you very much.

    Yes, exactly what I was looking for, solves perfectly for my problem and has potential for expansion - possibly commands for table of contents and various information in the command line version. And I learned something about Ruby - I had already planned to do.

    A note: In the email confirming the online purchase is a download link pointing to an old version 2.5.10.

    Kind regards Robert

  3. Support Staff 3 Posted by Brett on 03 Jun, 2018 12:20 PM

    Brett's Avatar

    The confirmation email for the purchase?


  4. 4 Posted by Robert on 03 Jun, 2018 12:48 PM

    Robert's Avatar

    ... yes the purchase confirmation e-mail; contains attached link:
    Version: 2.5.10 from 10.7.2017.

    • Robert
  5. Support Staff 5 Posted by Brett on 03 Jun, 2018 01:31 PM

    Brett's Avatar

    Cool, thanks for the note.


  6. Robert closed this discussion on 03 Jun, 2018 04:29 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac