60

image Creating a Script Wrapper for Microsoft Word

This tutorial shows how to wrap Word in a script so that you can connect it into your workflow in a modular way. Decide on a format for your text file. Here, I will use just a title heading and a single body text paragraph. We go through these steps:

1.  Write an AppleScript (or PowerShell script) to tell Word what to do.

2.  Design the script so the key parameters are placed near the top.

3.  Escape any quotes in that script.

4.  Wrap the escaped script in echo statements that write it to a temporary file.

5.  Embed dynamic script creator into an executive body that creates the script and runs ...

Get Developing Quality Metadata now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.