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 ...
Lucian's user avatar
  • 29.1k
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 ...
fabianmoronzirfas's 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 ...
Stefano's 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 ...
Wolff's user avatar
  • 20.6k
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....
Jongware's user avatar
  • 4,198
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 ...
fabianmoronzirfas's user avatar
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 ...
Tobias Kienzler's 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 "...
Arthur's user avatar
  • 233
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 ...
Wolff's user avatar
  • 20.6k
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 ...
joojaa's user avatar
  • 57.6k
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 ...
user9447's user avatar
  • 18.3k
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 ...
mdomino's 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 ...
mdomino's 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 ...
Loic's user avatar
  • 701
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:
Wolff's user avatar
  • 20.6k
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 ...
Vinny's user avatar
  • 4,583
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 // ...
Joonas's user avatar
  • 15.4k
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 ...
Scott's user avatar
  • 208k
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 ...
SZCZERZO KŁY's user avatar
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....
Loic's user avatar
  • 701
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 = ...
mdomino's user avatar
  • 984
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 ...
Jongware's user avatar
  • 4,198
3 votes

Importing learning cards in Indesign from EXCEL or XML or JSON file while keeping some basic formatting

As a matter of fact, you can't retrieve styles from Excel to Indd. Good practice is to style up your data variables in INDD, very easy to do. Just apply paragraph (or character) styles to your ...
Vinny's user avatar
  • 4,583
3 votes
Accepted

InDesign: script to "paste in place" selected objects to all unlocked layers

Your check if the layer is locked is missing a = (it's assigning rather than evaluating otherwise). It should be; if ( myDoc.layers[i].locked == false ) ... I just tested and the script works ...
Cai's user avatar
  • 40.4k
3 votes

Mass export all images as individual JPEGs in InDesign?

Thank you for your inputs. I have combined all the answers I got from all the different forums I asked help from and finally came up with a script that iterates only through the linked images and ...
Rachelle Ann Facistol Mata's user avatar
3 votes
Accepted

Find unwanted paragraph marks (GREP, find, replace, script)

Two criteria for your Find: Use this GREP search: \r(?!\d) And specify "Paragraph Style 1" in the Find Format field. GREP search looks for a paragraph mark \r, not followed by a digit (a "negative ...
MG_'s user avatar
  • 1,501
3 votes
Accepted

Indesign: exporting multiple certificates, each with a different name, into separate files

You need to start with InDesign's Data Merge feature where you import the list of names from a CSV file, overlay these onto you certificate design and automatically generate a document with 1000+ ...
Lucian's user avatar
  • 29.1k
3 votes

Mass export all images as individual JPEGs in InDesign, but not use image frame ratio

You need to export the graphic, not the object. Add .graphics[0] before the exportFile function. var myDoc = app.activeDocument, apis = myDoc.links.everyItem().getElements(), items, ...
Vinny's user avatar
  • 4,583
3 votes

Indesign - importing images via xml

Unfortunately there is no way to size images pulling into InDesign via XML dynamically. It doesn't allow you to map attributes for size and position of images. You can create an object style for your ...
Stegathesaurus's user avatar

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