From the course: InDesign Secrets
174 How to sort text in InDesign - InDesign Tutorial
From the course: InDesign Secrets
174 How to sort text in InDesign
- I need to alphabetize this list, and did you know that InDesign can do that for you? But you can look high and low in InDesign's menus and you'll never find the feature. Instead, you have to run a script that comes with InDesign. It's free, it ships with InDesign, but most InDesign users have no idea it's there. You can find it by heading up to the Window menu, choosing the Utilities submenu, and then choosing Scripts. Inside the Scripts panel, you want to open the Application folder, and then the Samples folder, and then, the JavaScript folder. And there's all kinds of cool scripts in here. I'm going to scroll down to near the bottom, and here I see the sort paragraph script. That's the script that's going to let me alphabetize this text. But before I run it, I have to select the text that I want to alphabetize. So, I'll double-click over here to switch to the Type tool, and then select all the text I want to alphabetize. Now, I'm going to run the script by double-clicking on it in the Scripts panel. I have two choices inside this Sort Method pop-up menu here, I can choose Ignore Formatting or Retain Formatting. Formatting has to do with the text formatting that I've placed on top of the text. For example, if any of this text had italic or bold text, I would need to choose Retain Formatting. But because there's no local formatting here, I can just leave it set to Ignore. Then, when I click OK, in an instant, InDesign goes through and alphabetizes the whole list. Now there are two weird things about this script that I want to let you know about. One is, if you want to undo this, you sometimes have to undo two or three times to get it back to the way it was. For example, I'll hit Cmd+z or Ctrl+z on Windows once and nothing happens. Then I'll press again, and then it goes back to the way it was. The second thing has to do with that Retain Formatting feature that I pointed out. Let's go ahead and select some text and I'll make it italic, for example. Now I want to run this script again, but I want to be very careful about what I select. When you have formatting and you know that you're going to be using that Retain Formatting feature, you want to make sure you only select the text you want formatted, not any additional empty lines. See how down at the bottom, there's an empty paragraph? I don't want that. I'm going to move my cursor up to just the text inside that paragraph. For some reason, if there's formatting and empty paragraphs, the script kind of freaks out and you get a warning. But now, with just that text selected, I'll run the script one more time by double-clicking on it, I'll choose Retain Formatting slower, and then click OK. Sort paragraphs is a great script, and it can save you so much time. There's a bunch of other scripts in here, too you should try. Just start double-clicking on these and see what they do.
Download courses and learn on the go
Watch courses on your mobile device without an internet connection. Download courses using your iOS or Android LinkedIn Learning app.
Contents
-
-
229 Batch converting ID files to current version with the Book panel6m 9s
-
230 Getting around InDesign limitations6m 46s
-
(Locked)
231 Creating better callout lines with effects and object styles5m 47s
-
232 Swapping column and row information in tables6m 9s
-
(Locked)
233 Making bigger text link targets4m 52s
-
-
-
161 Keeping page numbers on top of master items3m 55s
-
162 Adding automatic currency symbols in a table cell or before text3m 50s
-
(Locked)
163 Make a pop-up footnote for your ebook3m 48s
-
(Locked)
164 Deleting tabs at the beginning of paragraphs and applying a paragraph style3m 10s
-
(Locked)
165 Five InDesign Presentation tips6m 28s
-
-
-
(Locked)
111 Packaging images on the pasteboard3m 32s
-
(Locked)
112 Automatically updating figure references for books6m 9s
-
(Locked)
113 Adding Tool Tips to your form fields in InDesign3m 21s
-
(Locked)
114 Setting poetry, flush left, center on longest line3m 54s
-
(Locked)
115 Use bookmarks to navigate long documents in production4m 57s
-
(Locked)
-
-
(Locked)
107 Using the same keyboard shortcut for two different commands with the Context feature5m 22s
-
(Locked)
108 Making a text highlighter3m 33s
-
(Locked)
109 Updating an interactive PDF without losing work done in Acrobat5m 30s
-
(Locked)
110 Adding custom text at the beginning of each line automatically4m
-
(Locked)
-
-
(Locked)
089 Three great Object Styles for any designer8m 1s
-
(Locked)
090 Choosing alpha channel image transparency2m 25s
-
(Locked)
091 Adding and reading metadata for InDesign files3m 25s
-
(Locked)
092 Adding ALT tags to your images6m 59s
-
(Locked)
093 How to Place & Link a text frame's text but not its formatting7m 4s
-
(Locked)
094 Setting the baseline position of a caption2m 39s
-
(Locked)
-
-
(Locked)
051 Five things that should be in every new file5m 19s
-
(Locked)
052 Forcing EPUB page breaks with invisible objects6m 21s
-
(Locked)
053 Understanding component information6m 39s
-
(Locked)
054 Creating running heads using section markers4m 16s
-
(Locked)
055 Making a font with InDesign using the IndyFont script5m 20s
-
(Locked)
056 Finding where that color is used7m 17s
-
(Locked)
-
-
(Locked)
047 Specifying an exact amount of space between objects5m 17s
-
(Locked)
048 Fixing last lines that are too short8m 16s
-
(Locked)
049 Creating web graphics from your InDesign artwork7m 20s
-
(Locked)
050 Using “No Language” to suppress unwanted hyphenation, spell-checking, and smart quotes2m 48s
-
(Locked)
-
-
(Locked)
037 Updating a linked table without losing formatting5m 18s
-
(Locked)
038 Creating electronic sticky notes4m 49s
-
(Locked)
039 Moving master page items to the top layer for visibility2m 48s
-
(Locked)
040 Five guide tricks that will impress your coworkers6m 18s
-
(Locked)
041 Letting InDesign add the diacritics4m 21s
-
(Locked)
042 Using single-cell table cells for custom paragraph formatting6m 2s
-
(Locked)
-
-
(Locked)
027 Creating running heads using variables5m 1s
-
(Locked)
028 Live Caption tips and tricks8m 3s
-
(Locked)
029 Making professional drop caps10m 37s
-
(Locked)
030 Making two-state buttons in interactive documents5m 5s
-
(Locked)
031 Moving pages from one document to another3m 15s
-
(Locked)
032 Wrapping bulleted text around a curve5m 58s
-
(Locked)
-
-
(Locked)
007 Selecting through and into objects using cmd-click and Select Above/Below5m 46s
-
(Locked)
008 Some great tips and tricks for the Swatches panel9m 40s
-
(Locked)
009 Saving down for backward compatibility with INX and IDML5m 54s
-
(Locked)
010 Using the INX and IDML formats to fix problems4m 46s
-
(Locked)