Quantcast
Channel: Adobe Community : All Content - InDesign Scripting

Image may be NSFW.
Clik here to view.

rotating text box

i'm trying to do this with script:i also write this two lines:app.selection[0].rotationAngle = 25; app.selection[0].absoluteRotationAngle = -25;but it doesn't help.would you give me a clue?thanks a bunch.

View Article


How can I get an "Overflows" frame property in IDML?

I am using InDesign CS5. In scripting, I can get the "Overflows" property to see if a given text frame requires overflowing. I could not find any similar property in IDML. Is there any way to determine...

View Article


Converting all hyperlinks to footnotes or endnotes

Hi everyone, I figured there would already be a script out there that would accomplish this, but can anyone point me in the right direction on converting all hyperlinks in a document into either...

View Article

InDesign CC 2019 (14.0.2) on macOS Extendscript bug

Where do we report bugs? Code below works fine on Windows and CC 2018 on Mac. But CC 2019 Mac it hangs the app once clicking the OK button in window 2. I've tried three different Macs including Mojave...

View Article

Pass variable from JSX to VBS

Hello, With ExtendScript I'm attempting to pass arguments to a VBS script from inside of a JSX script. I see that the arguments can be passed but I'm not sure how to retrieve those from inside of the...

View Article


Image may be NSFW.
Clik here to view.

Add Export Tagging

Hi,Can any one help, how to add export tag using scriptI have paragraph styles "H1" here i want to add "H1" tag as a EPUB and HTML Tag field. Before Script After Run the script should be HTML tag added

View Article

Batch update Paragraph Styles across multiple tempates

Is there such a script, extension or plugin?

View Article

fit frame to content

does anyone have a .jsx script to "fit frame to content" for text and graphic boxes on all pages?

View Article


Menu customization

I noticed that custom menu created by scripts are visible in Edit -> Menu. But I only see menu, not menuactions.It's a InDesign limit or I'm doing something wrong? this is my test script;...

View Article


Compare InDesign Files

Hi,         I want to compare InDesign files. Is there any method to compare 2 InDesign Files in application or code?     Need to compare texts, objects and designs and generate report if have any...

View Article

Image may be NSFW.
Clik here to view.

Convert specific text Variable to text through all pages

Hi, i want to convert every text variable named "Header" to text.But when i run this code, it converts all text variables to text.var myDoc = app.activeDocument;            for (i = 0, l =...

View Article

Preserve Local Formatting script and CS4

Unfortunately, Dave Saunders' amazing PreserveLocalFormatting.jsx script (that changes local formatting to character styles) doesn't work under InDesign CS4. I've tried running it both as-is and in the...

View Article

InDesign can't resave file link because of Japanese character in file name?

So this is my code to do a bridge talk from InDesign to AI to change color of every item to gray ( i get edit from earlier Kasyan disscussion in this forum)Code has a problem. It's can't resave the...

View Article


Image may be NSFW.
Clik here to view.

Find the first footnote of each page! …

Hi all ( again! ;-) ), All is in this topic title! What I've already written: var myDoc = app.activeDocument;  var myTFrame = myDoc.pages[0].textFrames.everyItem().getElements();  var myCondition =...

View Article

Image may be NSFW.
Clik here to view.

add Page Break before Group Paragraph Style with two dimensions

Hello!Please, I have a Group Paragraph Style, inside many paragraph styles like this: And I want to add a Page Break before of all the paragraph Styles inside of the Group ARTICLE.For example, here is...

View Article


Image may be NSFW.
Clik here to view.

Resize PageItem Loop

Hi, I'm trying to resize pageItems by looping through and adjusting the width of pageItems (which is in mm). I think that resizing must be in points, but that'll be easy for me to figure out later.I...

View Article

Text Frame event listener

Hi,I want to create a listener for a text frame, to evaluate the value when it changes (from a data merge) and use it to show/hide layers in the document. Possible? I can't quite put my finger on it.

View Article


Image may be NSFW.
Clik here to view.

Using Soap calls

Hi,  Does anyone have any experience in sending SOAP calls in a Indesign Javascript?Sending files using SOAP? Does the Indesign scripting framework supports web requests? Or on Os X, can we use default...

View Article

Export Each Alternate Layout to Separate PDF?

Hi everyone, I really like the Alternate Layout functionality of ID CC, but find it tedious when I have to export each layout to a separate pdf. Is there an existing way to do this in a batch, or a...

View Article

set width

Hi all friends, How can i set only the width of a textframe, here is a code that sets both Width & Height:  function setWidthHeight(/*PageItem*/o, /*str*/w, /*str*/h,...

View Article

Keyboard Shortcuts for Master Page Assignment?

I have a 150-page document that has 10 different master page types. Is there a way to use keyboard shortcuts to assign master pages to a page in the document. Example: I am on page 1 of the document. I...

View Article


to automate adding element and its attributes

hi all,i want to know when user applying "bold"  style in indesign menually i wanted to automate that if he apply bold then in xml structure it would automatically get added tag and attribute...

View Article


UITools.DIRECT_SELECTION_TOOL -- server support

I want to resize the polygon object based on their bottom clipping path.  How to do this indesign server using UI tool. Any alternate for UI tool in indesign server ?

View Article

Image may be NSFW.
Clik here to view.

table unit aligment

I have an indesign file along with number and text columns tables. I wanted to align the numbers. The column text has associated with xml elements, When I check the column string its shows data type as...

View Article

Position of an library asset on the page – how to get it?

First of all, I would like to thank very much all the participants in the previous thread that I started a few days ago. I wasn't sure where to write the answer with thanks, so unfortunately I didn't...

View Article


IDML to JSON

Dear All, I need to extract IDML file as JSON. Is there is any lib available for that ?  Is any support lib available for parsing IDML file in java or .NET? Is any direct method for extract json file....

View Article

auto increase paragraph indent

Hi, i tried to increase left indent until all of my paragraphs remains single lined.i wrote this code but it doesn't work:var li = app.selection[0].leftIndent ; var lin =...

View Article

Image may be NSFW.
Clik here to view.

Move numbers to First Line

Hi All, I want to move the numbers of a paragraph to the first line.  Select the numbers from the end of the line. Cut the numbers and Paste it to the first line.  Here's what I want to do:...

View Article

Image may be NSFW.
Clik here to view.

Script for Indesign Middle Eastern version for changing digit type to either...

Hi, I was just wondering if anyone could advise of a Javascript for the Middle Eastern version of Indesign for changing the digit type in every Paragraph style in a document to either Arabic or Hindi...

View Article



Image may be NSFW.
Clik here to view.

Toolkit debug issue

Hi,          Unable to debug the code for InDesign CC 2019. when i try its throwing the below error.            How to fix this and debug the code.

View Article

Can I cancel checkOut

Good morning, I'm working with some files with InCopy links. Right now, I check out the links, do some stuff and check them back in. Then close without saving. The problem is that the next time I open...

View Article

Current testing framework for ExtendScript

I'm working on a new CEP project (based on my bootstrap repo). I wanted to get a full testing harness in place to test my ExtendScript. I've modified tmaslen's jasminejsx (see my repo) to work with a...

View Article

Paragraph Style contents from pages selected from a list box

Hello, I have a script that I’m trying to modify but I have an issue that I can’t seem to work out.  The function below is used to get the content of the applied “UAVC-IHD” Paragraph Style from pages...

View Article


Image may be NSFW.
Clik here to view.

Looping through swatches for a dropdown in Indesign

Hey there, I am having trouble getting my swatches to appear in my scriptUI panel. what I am looking for is a loop that cycles through the document to find all the swatches then lists them in a...

View Article

Diff b/w inline and anchored object and script to find them

hi .. I see in the forum there are inline objects and anchored object, can someone explain what's the difference between them?Are they the same?if not, is there a way to create script to find an...

View Article

InDesign Table - Collapse empty Row

My apologies if this is not posted in the proper category...Ok, here's my issue...I have a table with 5 rows.  Sometimes, not all of the rows in the table will contain data.  Is it possible for...

View Article


Image may be NSFW.
Clik here to view.

dropdown list background color change

Hey there, i am working on a dropdown list to show my swatches in order on a panel. I would like each index color to have the background color of that number listed.I am looking all over and struggling...

View Article


Smart casing for Title Case with Script

Hi,I have working on a very large document which requires conversion of a particular paragraph style to Title case with smart casing such that words like A, An, The and so on and so forth, cover...

View Article

Get Names Of All Script Labels Of An Object

Hello, I am working with a document that contains items that have had several script labels inserted into them. I want to be able to access various information stored within these labels in another...

View Article

[AS] Adding Event Listener to Custom Dialog

Hi all,My goal is to have a custom dialog that includes a dropdown list but I would like to "activate" an enabling group is a certain value is selected (and of course deactivating it if another value...

View Article

Image may be NSFW.
Clik here to view.

Finding a glyph in 1 format next to a glyph in another

Hello, I am using InDesign CS6 on a Windows 10 PC. I placed text from a MS Word document while keeping local overrides. I then searched for all text formatted as Italic and then assigned it an Italic...

View Article


Image may be NSFW.
Clik here to view.

Coping folder alias's in finder through InDesign

Hi all, I have a need to copy Folder alias's from one folder to another in a script, this is easy to do with an indd alias but can't find a way of doing it with a folder alias. Below is a simple file...

View Article

Quick Guide for Findchange script?

Hi, I cannot get the Findchange script to work. When I open the file in SublimeText there are 3 files: FindChangeList.txtFindChangeList_play.txt andFindChangeByList.jsx Which file do I edit and exactly...

View Article


InDesign Scripting Basics

Hey All, I have experience with Javascript for web development and have some questions about InDesign automation.It's a bit tough to get started with a simple script and started reading the scripting...

View Article

Indesign script for removing pages with specific content/keyword...

...just like Extract PDF Pages Based on Content

View Article


Image may be NSFW.
Clik here to view.

Create swatch from Pantone name

I thought it was possible for a script to create a new swatch from a Pantone name. For example, given the name 'PANTONE 7696 C' I can (manually) create a new swatch in the Swatches panel, in the Colour...

View Article

InDesign CS6: Keyboard Shortcut for placing images

I have several documents which have over a hundred pages each. Each page needs to have 1 of ten backgrounds.Is there any way I can tap a keyboard shortcut and have the image automatically placed in the...

View Article

Eingebundene Bilder eines Objektformates durch Text ihres Bildnamens ersetzen

Hi,ich habe einen Katalog mit Hunderten von insgesamt fünf verschiedenen im Text eingebundenen (anchored) Grafiken (grafik1.ai, grafik2.ai grafik3.ai, grafik4.ai und grafik5.ai), die alle mit einem...

View Article

Image may be NSFW.
Clik here to view.

How can we cut/paste contents of footnotes

How can we get contents of footnotes and move() them to insertionPoint before footnote reference number and delete the empty footnote?

View Article


push index number from javascript to jsx

Hey there, I have my dropdown list woking from the HTML to javascript. once I select the dropdown that I want, I have an alert to tell me which index I selected from that array. The alert will be...

View Article



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>