📜  automator save pdf to downloads - Shell-Bash (1)

📅  最后修改于: 2023-12-03 14:39:24.388000             🧑  作者: Mango

Automator Save PDF to Downloads - Shell-Bash

Are you tired of manually saving each PDF file you come across to your Downloads folder? Look no further than Automator and Shell-Bash!

What is Automator?

Automator is a native macOS application that allows users to create scripts and workflows without needing to know how to code. It's the perfect tool for automating repetitive tasks or simplifying complex ones.

What is Shell-Bash?

Shell-Bash is a type of scripting language used in the terminal of macOS and other Unix-based systems. It's commonly used for system administration and automation.

How to Save PDFs to Downloads with Automator and Shell-Bash
  1. Open Automator and select "New Document"
  2. Select "Quick Action" and click "Choose"
  3. At the top of the window, set "Workflow receives current" to "PDF files"
  4. From the left-hand sidebar, drag "Run Shell Script" into the workflow area
  5. In the "Run Shell Script" action, replace "cat" with the following script:
for f in "$@"
do
    cp "$f" ~/Downloads/
done
  1. Save the workflow and give it a name, such as "Save PDF to Downloads"
  2. Test the workflow by right-clicking on a PDF file, selecting "Quick Actions", and choosing "Save PDF to Downloads"

Congratulations! You've just automated a tedious task and made your life a little bit easier.

Conclusion

Automator and Shell-Bash are powerful tools that allow users to automate tasks and streamline their workflows. By combining the two, you can create custom actions that save time and make your computer work for you. Give it a try and see how much easier your life can be!