This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Check for debug flag | |
DEBUG=0 | |
if [ "$1" == "--debug" ]; then | |
DEBUG=1 | |
shift | |
fi | |
# Check if location is provided |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on run {input_file, output_file} | |
try | |
-- Ensure input and output paths are POSIX paths (macOS paths) | |
set input_path to POSIX file input_file | |
set output_path to POSIX file output_file | |
tell application "Microsoft Word" | |
-- Start Microsoft Word if not already running | |
if not application "Microsoft Word" is running then | |
launch |
OlderNewer