11 votes
Accepted

InDesign: how to remove everything between square brackets

You don't need to script this, just hit Ctrl+F and switch to the 'GREP' tab type \[[^]]*\] in the 'Find what' field or type the same thing with an \s? added in front to also remove any preceding ...
user avatar
  • 27.5k
7 votes
Accepted

Script to always save IDML with INDD

This example should get you started. You need to run the script once per InDesign session. You could add it as a startup script for example. It will save everytime the user saves the document a idml ...
user avatar
7 votes

InDesign: workflow for translating texts

this is Stefano and I am Co-Founder at Redokun (the tool Loic suggested). There are a couple of ways to translate an InDesign file, and they generally go throw the IDML file format. There are also ...
user avatar
  • 156
7 votes

Adobe InDesign: Set text justify for every other line

I don't think it's possible to achieve this just by styling. You could use Right Indent for every second line, but that would require you to make manual line breaks which would be a mess. I will ...
user avatar
  • 18.7k
6 votes
Accepted

Indesign script to apply paragraph style to alternating paragraphs

They covered this in my last User's Group meeting. First, you have to set up your paragraph style's Next Style. If you want the paras to go Style A -> B -> A -> B etc, you have to have paragraph A's ...
user avatar
  • 1,506
6 votes
Accepted

InDesign script to list hyperlinks in active document

More than one error there, I'm afraid. "Hyperlink" is not covered in the latest version of Adobe's own Scripting guide (which would be "Adobe InDesign CS6 Scripting Guide: JavaScript" on http://www....
user avatar
  • 4,168
6 votes
Accepted

In Indesign, is there a way to delete all frames with a specific Object Style applied?

If you need a more fine grained search engine you could also use the FindChange capabilities built into InDesign (you still need a little bit of code to delete all the objects though). You can set ...
user avatar
5 votes
Accepted

Number paragraphs at end in Indesign

Got a solution; somewhat automatic, but not very elegant :o In the end, you will get something like this (screenshot below): (Download this InDesign file from Google Drive) The summary, without the ...
user avatar
5 votes

Script to always save IDML with INDD

Thanks, @fabiantheblind, that works brilliantly. I've adapted that to make it work as a Startup Script (it waits for a document to be opened). // Set a targetengine to make this work #targetengine "...
user avatar
  • 233
5 votes
Accepted

How to convert all raw-embedded images to placed files?

Hooray, as this answer states: With InDesign, generally the reason an image is not displayed in the Links panel is because it has been pasted into InDesign. The script available at the page ...
user avatar
5 votes

In Indesign, is there a way to delete all frames with a specific Object Style applied?

This little script should do the job. The main functionality of the script (the first part) is commented and quite simple (if you know javascript). I have added a small input dialog to make the script ...
user avatar
  • 18.7k
4 votes
Accepted

How can I automate this repetitive Design?

OK, this turned out to be trickier than I'd thought. But I was able to get each chat contained into one text frame with one anchored object. Object Styles I ended up needing to only define one ...
user avatar
  • 131
4 votes
Accepted

What is the difference between .jsx and .js?

The scripting engine Adobe uses is called ExtendScript which is a dialect of JavaScript, or more accurately EcmaScript. There are many dialects of JavaScript with different libraries around, and some ...
user avatar
  • 55.1k
4 votes
Accepted

Save to IDML script not working in CC2017

There is no reason to use a script in newer editions of InDesign as the IDML feature is under Export. Just go to File -> Export choose Format: InDesign Markup (IDML). If you are worried about the ...
user avatar
4 votes

How to script a popup box before closing a document - InDesign

Edit: Here is a script that asks for confirmation before closing a document: #target Indesign #targetengine "closeConfirmation" app.addEventListener("beforeClose", confirmClose); function ...
user avatar
  • 984
4 votes

How to get fore-edge printing on indesign?

Yes, this can be done in InDesign, via a script. You basically just need a script that duplicates a text frame onto each new page and moves it ever so slightly to the left on each page. On the first ...
user avatar
  • 984
4 votes

Indesign: how to export multiple PDFs using different presets at once

Sure, here's a few: Free: http://www.kahrel.plus.com/indesign/batch_convert.html Paid: http://zevrix.com/outputfactory.php Paid: https://www.axaio.com/doku.php/fr A little tip on using any of these ...
user avatar
  • 691
4 votes

InDesign Script to create URLs

It is a built-in feature. Open the Hyperlinks panel and select "Convert URLs to Hyperlinks..." in the panel menu:
user avatar
  • 18.7k
4 votes

Does anyone know of a script to sort words in single a paragraph alphabetically?

Not aware of such a script but it's very easy to combine a selection Grep Find/Change with SortParagraphs.jsx Select your paragraph, open the Find/Change panel. In the Grep tab, replace spaces by ...
user avatar
  • 4,543
4 votes
Accepted

InDesign script that generates percentages as page numbers

Not gonna lie... I spent way too much time on this, but here we are... This should be close enough (Instructions at the top of the script): // Version.1.0. // Page Numbers To Percentages.jsx // ...
user avatar
  • 15.3k
4 votes
Accepted

InDesign: Can I automate Master Page assignment to multiple, non-contiguous, pages without using page numbers?

Thanks to @Wolff and some more searching, I was able to edit an additional script I found on github, (which may be written originally by Joonas??) to accomplish this within InDesign. [None] refers to ...
user avatar
  • 197k
3 votes

Endnotes in InDesign: Closest thing to a pain-free, flexible workflow?

Unfortunately the answer lays in the path of a lot of work. There's no way, right now, but Adobe (being Adobe) has demonstrated a path to achieving the result you desire through their janky system in ...
user avatar
  • 2,855
3 votes

Why does grouping or moving textboxes break the script?

Where does your items name "linkslist" come from? By setting a name for the textFrame? The "name" property of a textframe seems to be persistent for the document. Also if you copy paste the ...
user avatar
3 votes
Accepted

Resizing ALL images on ALL pages in Indesign Document

The key is to use Frame Fitting Options on your barcode image frame before you create the merged document. In the template document, resize your barcode placeholder frame to the desired final height. ...
user avatar
  • 1,524
3 votes
Accepted

How can I use GREP to get all text between the third and fourth underscore in a file name?

Regular expressions is a general programming concept and by no means only something found in InDesign (in pretty much fact every programming language out there has regexp support). So you can ask ...
user avatar
  • 55.1k
3 votes
Accepted

Indesign script to add HTML tags based on character styles

This is definitely doable, and can quite easily be done with the use of a GREP-style script. For each of your attributes, search for it using the GREP tab and replace with <b>$0</b> (so ...
user avatar
  • 4,168
3 votes

Batch copy/paste of rectangular images in square images?

In Photoshop the easiest way is to make an action and then run a batch. First step is to change image size to desired and then change canvas size to 600. Illustrator don't allow to record an action ...
user avatar
3 votes

How do I position an InDesign object using Javascript?

Yes, it is possible to position an InDesign object via scripting. First you need to somehow adress the oval, so you can later move it. If it is the only oval on the spread you can use var myOval = ...
user avatar
  • 984
3 votes

How do I position an InDesign object using Javascript?

Here is a proposal: var main = function() { var doc = app.properties.activeDocument, today = (new Date()).getDate(), found, x1, x2, y1, y2; if ( !doc ) return; app....
user avatar
  • 691

Only top scored, non community-wiki answers of a minimum length are eligible