โ† Back to Home ๐Ÿ“– Documentation GREP Batch Processor v5.00

GREP Batch Processor v5.00

Professional Documentation & User Guide

Overview

GREP Batch Processor is a professional automation tool for Adobe InDesign that enables users to execute multiple GREP Find/Change queries in a single operation. Designed for publishing professionals, typesetters, and book designers, this script dramatically reduces the time required for repetitive text formatting and cleanup tasks.

What It Does

The Problem It Solves

When formatting books or long documents, typesetters often need to run dozens of GREP Find/Change operations: fixing typography, standardizing punctuation, applying character styles, cleaning up imported text, and more. Manually running each query through InDesign's Find/Change dialog is:

GREP Batch Processor solves all of these problems by automating the entire process.

Who Should Use This Script

Key Features

Core Functionality

FeatureDescription
Batch ExecutionRun unlimited GREP queries in a single operation
Preset SystemSave and load query selections for repeated use
Custom OrderingDefine exact execution sequence for queries
Scope ControlChoose which document areas to include/exclude
Backup ProtectionAutomatic document backup before changes
Multi-locale SupportWorks with all international InDesign versions

User Interface

FeatureDescription
4-Tab InterfaceOrganized, uncluttered workspace
Real-time FilterInstantly find queries in large collections
Visual FeedbackClear indication of selected queries and order
Preset PreviewSee preset contents before running
Progress ReportingTrack execution status and results

System Requirements

RequirementSpecification
Adobe InDesignCS6 or later (CC 2018+ recommended)
Operating SystemWindows 10/11 or macOS 10.14+
Script FormatExtendScript (.jsx / .jsxbin)

Prerequisites

Before using GREP Batch Processor, you should have:

  1. Saved GREP Queries: The script works with queries saved through InDesign's Find/Change dialog (Query โ†’ Save Query). Without saved queries, there is nothing to batch process.
  2. Basic GREP Knowledge: Understanding of what GREP queries do and how they affect your document.
  3. Document Backup Awareness: While the script includes backup functionality, always maintain your own backup copies of important documents.

Installation

Step 1: Locate the Scripts Folder

Windows:

C:\Users\[Username]\AppData\Roaming\Adobe\InDesign\Version [X]\[Locale]\Scripts\Scripts Panel\

macOS:

~/Library/Preferences/Adobe InDesign/Version [X]/[Locale]/Scripts/Scripts Panel/

Alternative Method:

  1. Open InDesign
  2. Go to Window โ†’ Utilities โ†’ Scripts
  3. Right-click on "User" folder
  4. Select "Reveal in Explorer" (Windows) or "Reveal in Finder" (macOS)

Step 2: Install the Script

  1. Download GREPBatchProcessor_v5.00.jsxbin
  2. Copy the file to your Scripts Panel folder
  3. The script will appear in the Scripts panel immediately

Step 3: Verify Installation

  1. Open InDesign
  2. Open the Scripts panel (Window โ†’ Utilities โ†’ Scripts)
  3. Expand the "User" folder
  4. You should see "GREPBatchProcessor_v5.00"
๐Ÿ’ก Tip: Create a keyboard shortcut for quick access! Go to Edit โ†’ Keyboard Shortcuts โ†’ Product Area: Scripts โ†’ Find the script and assign your preferred shortcut.

User Interface

GREP Batch Processor features a modern 4-tab interface designed for efficient workflow management:

TabPurpose
QueriesBrowse, select, and organize queries. Build and save presets.
Run PresetQuick access to execute saved presets
HelpBuilt-in documentation and tips
SettingsConfigure backup, folder paths, and preferences

Working with Queries

Query List

The query list displays all GREP queries found in your InDesign GREP folders. Each query shows:

Assigning Order

Queries execute in the order you specify. To assign order:

  1. Select a query in the list
  2. Enter a number in the "Set #" field
  3. Click "Apply"

Queries run from lowest to highest number. Queries without numbers execute after numbered queries.

Search Options

OptionDescription
Use query settingsUse each query's saved scope settings
FootnotesInclude footnote text in search
Master PagesInclude master page items
Hidden LayersInclude hidden layer content
Locked LayersInclude locked layer content
Locked StoriesInclude locked story content

Working with Presets

What Are Presets?

Presets save your query selection and execution order so you can reuse them later. Great for:

Creating a Preset

  1. Select queries and assign order numbers
  2. Enter a preset name in the "Save Preset" field
  3. Click "Save"

Running a Preset

  1. Go to the "Run Preset" tab
  2. Select preset from dropdown
  3. Review the preset contents shown below
  4. Click "Run Preset"

Backup System

GREP Batch Processor includes an intelligent backup system to protect your work.

How It Works

โš ๏ธ Important: While the backup system is reliable, always maintain your own backup copies of critical documents. Never rely solely on automated backups.

Troubleshooting

"No GREP Queries Found"

Solutions:

"No Queries Have Order Numbers"

Solution: You must assign execution order numbers (#) to queries. Click a query, enter a number, and click Apply. Only queries with numbers will execute.

Script Runs Slowly

Possible causes:

Solutions:

GREP Folder Locations

Windows:

C:\Program Files\Adobe\Adobe InDesign [Version]\Presets\Find-Change Queries\GREP\
C:\Users\[You]\AppData\Roaming\Adobe\InDesign\[Version]\[Language]\Find-Change Queries\GREP\

Mac:

/Applications/Adobe InDesign [Version]/Presets/Find-Change Queries/GREP/
~/Library/Preferences/Adobe InDesign/[Version]/[Language]/Find-Change Queries/GREP/

Why .jsxbin Format?

What is .jsxbin?

.jsxbin is Adobe's official binary format for ExtendScript files. It's not a proprietary or suspicious format โ€” it's created using Adobe's own ExtendScript Toolkit "Export as Binary" feature, which has been part of Adobe's development tools for many years.

Why Use Binary Instead of Plain .jsx?

This script took hundreds of hours to develop, test, and refine. The binary format helps protect the code from:

While I'm happy to share this tool for free, I also want to protect the work that went into creating it.

Is It Safe?

Absolutely. Here's why you can trust this script:

Can I Review the Source Code?

For legitimate purposes such as:

Please contact me at feedback@autolayoutai.com and I'll be happy to discuss options.

๐Ÿ’ก Note: If you're uncomfortable using binary scripts, I completely understand. Always prioritize your security comfort level. You can create similar functionality manually using InDesign's built-in Find/Change dialog โ€” it just takes more time.

Best Practices

Before Running

Creating Effective Presets

Query Design Tips

โœ… Pro Tip: Always test queries in Find/Change dialog (Ctrl/Cmd+F) before batch processing. This helps catch issues before they affect your entire document.

Credits & Acknowledgments

ContributorContribution
Jean-Claude TremblayLocale folder mapping data enabling international support
Mohammad HasanainOriginal inspiration from GREP Toolkit concept
InDesign CommunityTesting, feedback, and feature suggestions

Resources Used

About the Author

Marko Markovic

Marko Markovic

I'm a book designer working with US publishers. I built this tool because I was tired of running the same GREP queries manually, over and over. What started as a personal productivity hack turned into something I wanted to share with the wider InDesign community.

After years of formatting books, I know how much time goes into repetitive tasks. If this script saves you even a few hours, it was worth sharing.

Hope it saves you time too!

Connect

๐Ÿ’š Free Forever: This script is and will always be free. I believe in sharing knowledge with the community. If you find it useful, please leave feedback and rate it โ€” it helps others discover the tool!
โš ๏ธ IMPORTANT - PLEASE READ CAREFULLY

Trademark Notice

Adobeยฎ, InDesignยฎ, and Creative Cloudยฎ are registered trademarks of Adobe Inc. in the United States and/or other countries. macOSยฎ is a trademark of Apple Inc. Windowsยฎ is a registered trademark of Microsoft Corporation.

GREP Batch Processor is an independent project and is NOT affiliated with, endorsed by, sponsored by, or in any way officially connected with Adobe Inc., Apple Inc., Microsoft Corporation, or any of their subsidiaries or affiliates.

This is a community-created automation script that works within the Adobe InDesign scripting environment. It is provided as a productivity tool for the publishing community.

Use at Your Own Risk

By downloading and using GREP Batch Processor, you acknowledge and agree that:

No Warranty

THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Limitation of Liability

Under no circumstances shall the author be liable for any direct, indirect, incidental, special, consequential, or punitive damages arising out of or related to your use of this script, regardless of whether such damages arise from breach of contract, tort (including negligence), or any other legal theory, even if the author has been advised of the possibility of such damages.

License

โœ… FREE FOREVER - This script is and will always be free. I believe in sharing knowledge with the community.

GREP Batch Processor is provided free of charge for personal and commercial use.

Why Free?

I created this tool to help fellow designers and typesetters save time on repetitive tasks. The publishing community has given me so much knowledge over the years, and this is my way of giving back. Knowledge should be shared, not sold.

You MAY:

You MAY NOT:

Disclaimer: This software is provided "as is" without warranty of any kind. The author is not responsible for any damages or data loss resulting from use of this script. Always backup your documents before batch processing.

Attribution

When sharing or referencing this script, please credit:

Version History

Version 5.00 (Current)

Release Date: 2025

Free for personal and commercial use