Questions tagged [indesign-scripting]

Questions about the automation and extending of functionality through the use of scripts within Adobe InDesign.

Filter by
Sorted by
Tagged with
2
votes
2answers
365 views

How could I use a slug in InDesign as a digital client sign off?

I'm hoping to find a solution for a digital client sign off on artwork by using the digital signature feature in Acrobat but I'm hoping to be able to have this automatically set up in InDesign so I ...
2
votes
3answers
583 views

InDesign script to remove auto-sizing option from specific text frame

I'm trying to write an ExtendScript script for InDesign to automatically generate a catalogue, which will be based on an inputted XML file. As by now, I'm defining different page types for different ...
1
vote
3answers
1k views

In InDesign, How to apply an Object Style to the frames those has same specific link image?

Is it possible to force indesign search for frames by their links and apply a specified object style to them? Any Script will appreciated!
0
votes
1answer
61 views

Search for a specific value of an object in InDesign

I need to look up all images within several pages of my InDesign CC2018 document which containers have a negative (-100%) value of the y-scale AND a specific negative value (-40%) of the image itself. ...
1
vote
1answer
1k views

Indesign - importing images via xml

I have imported several tags to import an image using the following code: <link href="C:\Users\39875\Pictures\Screenpresso\test.png"></link> However the created the image is quite large. ...
0
votes
1answer
759 views

indesign script - output textframe onto active document

In my indesign document i have around 250 pages, each of which contain 1 table (1 per page). What i am trying to do is: Get the value of the top row of each table Retrieve the first letter of the ...
5
votes
1answer
1k views

Indesign - remove empty cells from table

I have imported XML which contains nested tables and have created a script to remove all empty cells which is as: var myDocument = app.activeDocument; for(var i=myDocument.textFrames.length-1; i>=...
5
votes
1answer
2k views

InDesign: how to remove everything between square brackets

I have a script to find all textframes in a document, and do a regular expression to remove (if contains) all text inside square brackets. For example the text frame might contain: "Lorem ipsum ...
1
vote
1answer
330 views

Indesign Script - output xml content as textframes [closed]

Is there a way of looping through xml tags and output each tag onto a new page of an indesign document Here is what i have so far but i think i am way off: var myDocument = app.activeDocument; var ...
0
votes
1answer
387 views

Script to apply two cell style in single row [closed]

I frequently work on financial document more than 100 tables, I come across tables where there are four cell styles Thick rule Left aligned (For first cell in a random row) Thick rule right aligned ...
1
vote
2answers
837 views

InDesign Script to create URLs

Is there a script to use within InDesign so it finds a URL within textframes and it turns it into a hyperlink? As I am aware, to create a hyperlink within InDesign requires you to right click and ...
2
votes
0answers
1k views

Script to resize InDesign page to fit content

I'm wanting to use ExtendScript javascript to loop through each page of an Adobe InDesign document and change the size of the page to match the visible bounds of all the objects on that page. I'll ...
4
votes
1answer
135 views

InDesign to Photoshop Process [closed]

I have this Script to distribute objects to its own layers. var mySels = app.selection.length; if (mySels == 0) { alert("Select the object and Run the script"); exit(0) } else { while (...
0
votes
1answer
164 views

Why is the Indesign Scripts panel suddenly not sorted alphabetically? [closed]

The Scripts panel in Indesign is sorted alphabetically by filename. Suddenly, the scripts seem to be ordered randomly in the panel. This gets quite unefficient when trying to quickly find correct ...
1
vote
1answer
2k views

InDesign: How break a story from a text frame in two part? Any Scripts?

Is there a way to break a story by selecting a text frame and split it in two? There is two scripts which they called and do as: BreakFrame (shipped by application and is in the sample): This scripts ...
0
votes
1answer
1k views

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

I've got a series of documents that I need to export to 4 different PDFs. (High-res print ready, high-res no bleed, low-res online, and one last high-res with a different name). Is there a script out ...
0
votes
1answer
113 views

Indesign: Is it possible to Replace frames those content a specific link with clipboard content?

I have a lot of frames (as icons) linked to one image (link). But now I want a glyph instead them. Is it possible to replace them with a glyph that I copied to clipboard? Any script? Even is it ...
1
vote
1answer
1k views

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

I would like to mass export all linked images in a Indesign document using this script, its from this thread var myDoc = app.activeDocument, apis = myDoc.allPageItems, pageItem, fileName; while ( ...
0
votes
1answer
759 views

GREP Style to remove tabs & replace with paragraph break

I am wondering if it is possible to create a GREP Style (not search) to auto-format a consistent data set of info. Data example as follows: XXX1X234-101 "UPAS" WOVEN SPTWR JKT OFF WHITE XXX1X234-...
3
votes
1answer
379 views

Creating dynamic page variables for a statewide report

I need to develop a report that publishes data collected from all of the counties in the state. The layout format for each county is the same but the graphs and charts with ten data points vary. I ...
3
votes
3answers
2k views

InDesign: workflow for translating texts

I have quite a large document, a product catalogue to be specific, which I have to translate. I tried doing this manually and exporting to RTF, which is tedious because of the rearrangements I have to ...
3
votes
1answer
358 views

Bullet list syntax for Adobe InDesign script

I'm looking for the syntax that defines bullet points so that I can create a bullet list in a script for use as a guide template for other users. At a guess my best bet so far is that it's under '...
3
votes
2answers
2k views

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

I need a plugin, or script that deletes frames with a specific applied style. Or if there is already a tool exists in Indesign please guide me there.
0
votes
1answer
752 views

How to assign and execute a custom JavaScript function to a button on InDesgin?

I am new in scripting. I have checked other answers and a few tutorials but I failed to find a way to assign custom function to a button on InDesign. I built a PDF and added a button. I want to ...
2
votes
2answers
2k views

How to get fore-edge printing on indesign?

I need to get print like this. How to get it in indesign?
1
vote
1answer
69 views

Is there any section managing tool/ panel for indesign?

In Indesign going through sections in multi documents or long documents to editing their titles and other options is a time eating process. Is there a panel, script or plug-in to just list sections... ...
2
votes
0answers
47 views

InDesign: Can tags add behavior to xml?

I have an xml file and a template. For some reason when I import the xml it ads a blank element between the title and subhead. The element doesn't exist in the xml file, but before I import it there ...
10
votes
0answers
324 views

Add Git log as table to InDesign Document

I use InDesign CC as the last step in document processing. The source is written in Markdown and converted via pandoc to an InCopy document which gets linked to a text frame in InDesign. The whole ...
1
vote
2answers
2k views

How to prevent hyphenation in InDesign?

In my InDesign application settings I have hyphenation turned off for new documents as my default setting. When I copy one or more text boxes from a source document to a target document with ...
1
vote
2answers
2k views

InDesign: Using GREP to style URLs, email addresses, phone numbers, social handles, and hashtags

I'm brand new to GREP and its uses in InDesign, and while I'd like to understand it in a more robust way someday, at the moment I'm struggling to find some resources that can explain just the basics ...
2
votes
2answers
937 views

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

I have used javascript to script before, using an eventlistener to say app.addEventListener( "beforeClose" , [function]); function [functionname]() etc... What I need is a way to tell InDesign '...
2
votes
1answer
1k views

Automatically merge individual .indd files

First some background info: I work for a medium sized publisher, which works with licenses from external companies. We receive english InDesign files, and translate them into our native language. We ...
1
vote
1answer
766 views

InDesign: how to solve this numbering issue?

I'm putting together a brochure. I want to speed up my workflow. I have something resembling a table of contents, but made manually, meaning, I have a list of galleries each assigned an arbitrary ...
1
vote
1answer
1k views

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

I'm looking for efficient way of importing the 1000+ individual names into an InDesign document then exporting out as an individual PDFs (a 1000 page pdf wont work). One name per page. I have created ...
0
votes
1answer
914 views

InDesign GREP style Bold before tab

I have this GREP style that bolds text before a colon but I would like to do this without a colon. I have done this as a paragraph style to apply bold to list of abbreviations. ^[^:]+ When I have ...
2
votes
1answer
869 views

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

I have an InDesign CS6 document with a lot of numbered paragraphs. They begin with a number and end with a paragraph mark. However, there are some paragraphs which have unwanted paragraph marks in the ...
0
votes
2answers
130 views

SpecialCharacters.PAGE_BREAK compare against TextFrame.contents

var myStories = app.activeDocument.stories.everyItem().getElements(); for (i = myStories.length - 1; i >= 0; i--){ var myTextFrames = myStories[i].textContainers; $.writeln(myTextFrames....
0
votes
1answer
188 views

Indesign API built-in events paragraph-style

Does Indesign trigger any events when a paragraph style object does change? Or is there any built in javascript functionality that can observe an object? Object.obserce and Proxy are not working in ...
0
votes
2answers
200 views

Merge content of files line by line (intersperse lines)

I am using Windows 10 and InDesign CS6. I would like to take 2 files, mix the content line by line and output to a third file to make an ebook, as follows. INPUT FILE 1 (e.g. TXT, XML, SQL, etc.) [...
1
vote
1answer
1k views

Finding all TexFrame and TextPath objects in an InDesign document via scripting

I'm looking for a fast way to extract all the TextFrame and TextPath objects in a document via scripting. I have a working implementation that works also for inline elements but it's really slow ...
1
vote
1answer
363 views

Custom data inside IDML files

I’m looking for a way to inject custom data inside IDML files via scripting, but I’m not sure that it’s possible. The IDML specification states “IDML supports the inclusion of new scripting objects ...
4
votes
3answers
1k views

Mass export all images as individual JPEGs in InDesign?

I am new to Indesign. I have a file that contains images with Photoshop clipping paths. I want to export all the clipped images in a folder. I have tried doing the "Copy Links To" and it successfully ...
1
vote
1answer
1k views

What is a Type 1 font in InDesign?

Diving down the rabbit hole of scripting InDesign to learn more about what fonts are in a file I ran across several font types but I'm unsure what it means in InDesign when you have a Type 1 font type....
2
votes
1answer
1k views

In InDesign how can you script to detect a locked object?

I have an InDesign brochure that I'm trying to script against however I'm running into issues. When I try to script against the 100 page brochure I get an: Error Number: 11274; Error String: ...
1
vote
2answers
2k views

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

I am trying to build a script to "paste in place" all selected objects to all unlocked layers. My attempt is probably nearly there, but something's not working. var myDoc = app.activeDocument; var ...
0
votes
1answer
115 views

Link InDesign documents so that all are updated when one is changed

Im working on a 300 page catalog with tons of "items" on each page. The information in the catalog is also put on a separate InDesign document for a "spec sheet" and sometimes, price sheets or flyers ...
2
votes
2answers
1k views

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

In an EXCEL or XML/JSON file I have stored the contents of learning cards: one column for front side of the card, one column for the back side of the card. I want the cards to be layouted in Adobe ...
4
votes
0answers
793 views

inDesign: Place textframes relative to other textframes, with automatic repositioning on resize

I use javascript to create an inDesign file containing multiple textframes. During script runtime, the textframes are easily positioned at the right place. The problem arises, when I change the text ...
2
votes
3answers
307 views

Convert paragraphs to specific style based on content?

I really like plain text writers, such as Ulysses and the recently found Bear (both Mac). I'm currently writing my thesis and I enjoy styling. However, something that really annoys me is the gap ...
4
votes
2answers
781 views

Save to IDML script not working in CC2017

I'm relatively new at using scripts & the ExtendScript toolkit - and I'm working in an office environment where I'm using Adobe CC2017 and coworkers are using CS5. In order for my InDesign files ...