![]() Note: the script above does not remove the original. # Uncomment the following line to remove the original file, leaving only the PDF # rm "$f" >/dev/null done ![]() ![]() Textutil -convert html -output " $filepathWithoutExtension.html" " $f" # Convert the file into a PDFĬupsfilter " $filepathWithoutExtension.html" > " $filepathWithoutExtension.pdf" # Remove the temporary HTML file rm " $filepathWithoutExtension.html" >/dev /null #!/bin/bash # Jacob Salmela # Convert annoying DOCX into PDFs with a right-click # Run this as an Automator Service # SCRIPT # for f in do # Get the full file PATH without the extension filepathWithoutExtension= " $" # Convert the DOCX to HTML, which cupsfilter knows how to turn into a PDF
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |