A Script to Empty Selected Text Frames in InDesign

A simple fix for a missing feature in InDesign, with the help of AI

In my opinion, scripting is the area where generative AI has the greatest potential to help creative professionals. We’re suddenly at the point where if you’re frustrated that a feature doesn’t exist in InDesign, Photoshop, or Illustrator, you can take a shot at making it yourself—even if you’ve never written a line of code in your life.

Case in point: The other day I wanted to quickly clear out the contents of a number of text frames on a spread in InDesign, while leaving the rest of my layout alone. For a minute, I thought there had to be an easy way to do that but I was just forgetting it. Alas, no.

No problem. I just fired up the MATE extension, and told it to make me a script that would delete the contents of all selected text frames, including frames that are grouped or threaded. A few moments later, I was in business.

If you’re logged in as a member, you can download the script with the button above.

Bonus tip: Run this or any other script in InDesign quickly and easily by using Quick Apply. Just launch Quick Apply by pressing Command+Return/Ctrl+Enter. From the panel menu, select Include Scripts. Now, you any time you want to run a script, launch Quick Apply and start typing the name of the script. When you see it highlighted, press Return/Enter.

For more about using AI to write scripts, check out Jean-Claude Tremblay’s article on MATE in issue 46 of CreativePro Magazine, and my article, The Power of Scripts, in issue 47.

More Resources To Master InDesign

The InDesign Conference is coming to a screen near you—hosted entirely online, December 9–12, 2025.

Join the world’s most knowledgeable InDesign experts as they share their wisdom, tips, and techniques for building documents of every size and format.

LEARN MORE

Members get a special discount on registration! Sign up today.
Bookmark
Please login to bookmark Close

This article was last modified on September 16, 2025

Comments (0)

Leave a Reply

Your email address will not be published. Required fields are marked *

Loading comments...