diff --git a/docs/batch.rst b/docs/batch.rst index d905752f..9958a3d2 100644 --- a/docs/batch.rst +++ b/docs/batch.rst @@ -163,14 +163,11 @@ This is only possible for x86-based Synology products. Some Synology products us shutil.move(full_path, full_path_archive) logging.info('Finished.\n') - - Huge batch jobs """"""""""""""" If you have thousands of files to work with, contact the author. Consulting work related to OCRmyPDF helps fund this open source project and all inquiries are appreciated. - Hot (watched) folders --------------------- @@ -210,3 +207,13 @@ Alternatives """""""""""" * `Watchman `_ is a more powerful alternative to ``watchmedo``. + +macOS Automator +--------------- + +You can use the Automator app with macOS, to create a Workflow or Quick Action. Use a *Run Shell Script* action in your workflow. In the context of Automator, the ``PATH`` may be set differently your Terminal's ``PATH``; you may need to explicitly set the PATH to include ``ocrmypdf``. The following example may serve as a starting point: + +.. image:: images/macos-workflow.png + :alt: Example macOS Automator script + +You may customize the command sent to ocrmypdf. diff --git a/docs/images/macos-workflow.png b/docs/images/macos-workflow.png new file mode 100644 index 00000000..f2c55a92 Binary files /dev/null and b/docs/images/macos-workflow.png differ