Swap Thousands/Decimals

Change English-style thousands separators and decimal separators to non-English style and vice versa.

This script is part of the Type and Text collection. See the full collection here.ย 

The script changes English-style numbers (decimal points, commas for thousands separators) to non-English style (decimal commas, periods for thousands separators) or the other way around.

The script has no interface. It simply exchanges one style for the other in what’s selected when you run it. That selection can be one of the following three types:

  1. Select nothing at all to process a whole document.
  2. Select some text to process just the selection.
  3. Select a text frame to process the story of which the selected text frame’s content is part. Note: to process the contents of just one text frame, select the contents of that frame, not the frame itself. This goes only for threaded frames: to process an unthreaded frame, it doesn’t matter whether you select that frame or its contents.

Version history

9 May 2021: The script didn’t work well with selections in/of tables. Fixed.

26 Feb. 2019: Fixed an incompatibility.

14 Feb. 2011: Posted.


Peter Kahrel Script Repository
Hosted as a community service, and with deep appreciation, by CreativePro.com


Scripts by Topic | Script Index
Basic Script Installation and Use
How to Modify or Configure These Scripts
Resources for Scripting and Publishing Automation
About This Repository


Repository Home Page


Contact Peter Kahrel


Note to users: You run scripts at your own risk: CreativePro and the author accept no liability for anything that may be caused by any of these scripts. Always take the necessary precautions. We encourage you to save backups and test scripts on copies of your documents.

Bookmark
Please login to bookmark Close

This article was last modified on August 22, 2026

Comments (0)

Leave a Reply

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

Loading comments...