1. Convert PDF to plain text
PDFs are essentially images of text, but what if you need to separate text from image? Don’t waste time and effort manually copy/pasting each and every paragraph into a separate text document! You can create an application that automatically extracts every line of text from a PDF, and then saves this text as a separate file.
- Launch Automator, by opening your Mac’s Finder, navigating to “Applications” and then selecting the Automator app.
- We’re creating an application, so select “Application -> Choose.”
- You should now see the main Automator editor, where we’ll build all of our applications. Make sure the “Actions” tab is selected.
- In the “Library” column, select “PDFs.”
- Find “Extract PDF text,” and drag and drop this item into the editor. The “Extract…” action will now be added to the editor, ready for you to customize.
- You can now specify whether Automator should save the extracted text as a rich text document or as a plain text document.
- Open the “Save output to” dropdown and choose where the resulting text file should be stored.
- Specify whether the resulting text file should have the same name as the original PDF, or you can assign it a unique name using “Output file name: Custom Name.”
- In the Automator toolbar, select “File -> Save…” and give your application a name. That it’s! Now, you can extract all the text from a PDF, simply by dropping that PDF onto the application you just created.
2. Create a “Quit All” switch
If you have a habit of leaving multiple applications running in the background, then this can have a noticeable impact on your Mac’s performance. While you could close every application manually, why not save yourself the time and effort, and create a dedicated “quit all” application?
- Launch Automator, or select “File -> New” from the Automator toolbar.
- Select “Application -> Choose.”
- In the “Library” column, select “Utilities.”
- Find the “Quit All Applications” item, and drag it onto the editor.
- Are there some applications that you want to exclude from your “quit all” switch? To make an application immune, click “Add” and then select that application from the list.
- When you’re ready to create your “quit all” application, select “File -> Save…” and give this application a name. Now, the next time you want to “quit all,” simply run this application and it’ll close all currently-running applications for you!
3. Rename hundreds of files
There’s plenty of situations where you’ll need to rename multiple files, but my least favorite is renaming a bunch of photos I’ve just downloaded to my Mac, following a big event such as a holiday, wedding, or birthday party. In these situations you’ll want to use a similar name for every file.
- In the Automator toolbar, select “File -> New.”
- Select “Application > Choose.”
- In the “Library” column, select “Files & Folder.”
- When launched, this application should ask which files you want to rename, so find “Ask for Finder items,” and drop it onto the editor section.
- Since we want to rename files en masse, click the “Add Multiple Selection” checkbox.
- In the left-hand menu, find “Rename Finder Items” and drop it onto the editor.
- At this point a popup will warn that this action may change the original files, and you’ll have the option to apply these changes to a copy of the original file. Since we’re only changing the file’s name, I’m not going to create a copy.
- Next, select the “New Name” checkbox and let Automator know how it should rename your files. You can use whatever naming structure you prefer, but I want to add a sequential number to each file, so I’m selecting “Make sequential” followed by “Add number to: existing item name.”
- When you’re happy with the information you’ve entered, click “File -> Save…” Now, whenever you launch this application it’ll open a new Finder window where you can specify all the files that you want to rename.
4. Rotate any image From Landscape to portrait
If you have a large number of photos, screenshots, PDFs or any other files that you want to rotate, then you can use Automator to rotate those files without having to open each file, rotate it manually, and then exit the file.
- Either launch Automator, or select “File -> New” from the Automator toolbar.
- Select “Application > Choose.”
- In the “Library” column, select “Photos.”
- Find “Rotate Images” and drop it onto the editor area.
- At this point you’ll see a popup warning that this action may change the original files. Since we’re only changing the angle, I’m going to apply this change to the original file.
- Tell Automator how it should rotate the file in question – left, right or 180 degrees.
- You can now create this application, by selecting “File -> Save…” Now, whenever you want to rotate a file, simply drag and drop that file onto your application. Note that unless you specified otherwise, the file will remain in its original location.
5. Text-to-audio: Turn any piece of text into narration
Sometimes, it’s easier to listen rather than read. You can use Automator to create a service that converts text into audio. To give you the flexibility to convert any text into audio, I’m implementing this workflow as a service that you can access directly from macOS’ context menu.
- In the Automator toolbar, select “File -> New.”
- Select “Service -> Choose.”
- In the “Library” column, select “Text.”
- Select “Text to audio file,” and drag it onto the editor section.
- Open the “System Voice” dropdown and choose your narrator. You can preview any system voice, by selecting it from the list and then clicking “Play.”
- In “Save As,” enter the name that the generated audio file should use.
- In the Automator toolbar, select “File -> Save…” and then assign this service a name, which will represent this service in the macOS context menu. You can now use this service to convert any piece of text into an audio file:
Drag to highlight the text in question.Control-click the highlighted text and select “Services…” followed by the name of the service that you just created.
Automator will now generate an audio file from this text. To play this file, give it a click and macOS will start playing the audio in your default media player. Other than automator, you can also add custom options to the Services menu. You may also want to find out how to make application window “always on top” in macOS.