Copy contents of multiple .docx files and paste into one new document

Is it possible to create a macro that does this? I use Libre Office but you have to do it individually one file at a time.

I don't have Word, so I'm trying to find a way to automate the process. I'd like to select all the files, hit a key and have it copy the contents of the files to a new document and keep the formating but I'm new to Keyboard Maestro and I don't see the correct options to put that marco together.

Any suggestions on where to start?

Thanks

Hey @C_L,

Paste this into the Terminal and hit Return.

man textutil

The is the only macOS-native function (that I know of) that can do what you want.

It's imperfect. If your documents are too complex the formatting might get distorted.

Keyboard Maestro runs shell scripts via Execute a Shell Script actions.

-Chris

Here's an untested idea using this as a guide:
how to merge several documents into one -- LibreOffice.org

create a master document
open Navigator
Push icon Insert->File
Select your documents and select Open

You might be able to use KM Select or Show a Menu Item action along with a For Each Action Using Finders Selection collection.

If you have questions or need more help, just ask.

1 Like

Ok, thank you I will check that out.

Ok, that may work, I will give it a shot. Thanks.