Doing the same thing over and over on your Mac? Four ways to automate it

December 2026 · Automation

Typing the same sentence again, renaming files one at a time, clicking the same buttons dozens of times. Your Mac already has features that take this kind of repetition off your hands. Each fits a different kind of work, so here they are from the simplest up.

1. Phrases you type often: text replacement

If you keep typing the same thing, such as your email address, payment details or a standard greeting, text replacement is the easiest fix.

  1. Go to System Settings → Keyboard and click Text Replacements under Text Input.
  2. Click +, type a short abbreviation on the left and the full phrase on the right.
  3. Now type the abbreviation and press Space, and it turns into the phrase.

Pick abbreviations you would never type otherwise. Starting them with a semicolon, like ;mail, keeps them from firing by accident. It works in apps that use the standard macOS text fields, such as Notes, Mail and Safari, but some apps don't support it.

2. Many file names: rename them at once in Finder

No need to rename dozens of photos or documents one by one. Select them all in Finder, right-click, and choose Rename…. You can rename them in one of three ways:

An example of the new name is shown at the bottom, so check it before you click. If you don't like the result, press ⌘ Z to undo.

3. Several steps in one go: the Shortcuts app

The Shortcuts app in your Applications folder chains several actions together so one click runs them all. You build a shortcut by dragging actions from the list on the right, so you don't need to write code.

In a shortcut's details you can give it a keyboard shortcut or pin it to the menu bar. The catch is that Shortcuts can only control an app that offers actions for it. Buttons inside apps without actions, or clicks inside a web page, are hard to do with Shortcuts.

4. The exact clicks and typing: record and play back

For work Shortcuts can't do, such as pressing the same buttons in the same order in one program or copying values from one window into another, you can record the keyboard and mouse input you make and play it back exactly. This is often called a macro.

LoopIt is a free app for this. Press F8 and do the work once to record it, then press F9 to play it back at the same speed. You can set a repeat count (0 means until you stop it), a pause between runs and an overall time limit, and touching the keyboard or mouse stops it right away. Apps like this read and send input, so macOS requires Accessibility permission.

Rules for record-and-play

Which one to use

What you want to doUse
Type the same phrase oftenText replacement
Rename many files at onceFinder rename
Combine actions from several appsShortcuts
Repeat the exact same clicks and typingA record-and-play app such as LoopIt

Try them from the top down. The more a method is built into the Mac, the less it depends on window positions and timing, so the more reliable it is.

More Mac tips