How to create custom Quick Actions on a Mac

Configurare noua (How To)

Situatie

Creating a Custom Quick Action in the Automator App

Automator is a built-in macOS app that lets you create workflows to automate repetitive tasks on your Mac. While creating workflows often requires a good understanding of programming languages, Automator employs a simple approach, wherein you drag and drop actions to stitch them together and create workflows.

To create a Quick Action, launch the Automator app under Applicatons > Utilities. Click “New Document,” and when prompted to set the document type, select “Quick Action” and hit “Choose.”

In the workflow area, set the Workflow Receives Current action to “Image Files” in “Finder”

Now, in the Actions sidebar, select “Files and Folders” and drag and drop the “Get Selected Finder Items” action to the workflow area on the right.

Next, select “Photos” in the Actions sidebar and drag and drop the “Scale Images” action into the workflow area. Automator will prompt you to add the “Copy Finder Items” action to your workflow to preserve the original files. Click on “Add” to allow this and specify a destination folder for the files, or hit “Don’t Add” to overwrite the original files.

Once done, in the Scale Images action, enter the size (in pixels) you want your images resized to in the text field next to the “To Size” dropdown. Note that this value is essentially the maximum size of the longest side of the image, meaning it could be the width (for a landscape image) and length (for a portrait) image.

Finally, with all the actions added, save the Quick Action. Go to File > Save, or press the Command+S keyboard shortcut. Give a name to this service and click “Save”

If you ever want to edit the Quick Action in the future, open the Finder app and press the Command+Shift+G shortcut to access the Go to Folder window. Type in ~/Library/Services, and you’ll see all your Automator Quick Actions.

Control-click on the Quick Action you want to edit and select Open With > Automator.app. This will open the Quick Action in an Automator window. Make the changes, and don’t forget to save them.

Solutie

Tip solutie

Permanent

Voteaza

(4 din 8 persoane apreciaza acest articol)

Despre Autor