Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Browsing all 15932 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

JS/ScriptUI: placeholder madness

I created this yummy text box entry placeholder for CS4 on my Mac:  but for some reason this fails to draw correctly on Windows! If the edit box is active and the cursor is in it, the text is not drawn...

View Article


Script Running time log report

Hi, Is there any possibilities to take the run time report for script running process. For instance I have to collect my script running time to close time as in log report. byhasvi

View Article


doScript (UndoModes) breaks InDesign's Undo (CS4)

I wrote a little script. To make sure that I can undo it all in one go, I used: app.doScript(main, undefined, undefined, UndoModes.fastEntireScript,"My script"); Once the script completes, InDesign's...

View Article

Convert an image file to Base64 or other string value

Hi,I need toread the contentof an image file(JPEG, PNG,TIFF) andconvert that file toBase64string.Does anyone know ifyou cando these thingson Javascript, in InDesign?Thanks forany helpEDIT: I forgot...

View Article

Table : resize rows proportionally

Hello, I am new in javascript indesign. I want to resize rows proportionally in my table, but it seems that when I divided all my rows by 5 for example, all my rows will have the same size even if at...

View Article


Script to select all overflow text frames and fit them to content?

I have a document with several text frames that have overset text, due to replacing a font.  I was looking for a script that would: 1. find all the text frames that have overset text2. apply "fit frame...

View Article

Event stuff

I have 3 documents, is it possible when I go to the other document can run a script I try myEvent.target.id = 329 and 330it only when I click ctrl+tab will run the script how about when I mouse click...

View Article

Activating object layers basing on document layers

Hello,I have a series of Illustrator files placed on different layers in an Indesign document. I would like to set the visibility of the layers contained in the Illustrator files basing on the name of...

View Article


JavaScript fill curent layout color Black

hello, i have a javascript to setup a new document to the correct page size etc.BUt i want it also to have a colour black background and not white, is this possible with Javascript and the document...

View Article


JavaScript to Synchronize the contents of a book (.indb)

I'm new to programming and JavaScripting, I'm trying to learn, but I can't find a way to synchronize a book (all it's content). I would also like to set the first document in the book as the style...

View Article

Socket#read

I am currently writing my first InDesign/ExtendScript script. After exploring the forums, and the Object Model Viewer, it seems as if there are currently two different methods people take when...

View Article

Image may be NSFW.
Clik here to view.

Help! 'Package for Print' Script

Hi all, I have a specific 'Package For Print' script, that needs a small modification, and and I was hoping someone could help me. Essentially, I need to OMIT 'Include PDF' option when packaging, since...

View Article

How to write a script to indesign I only want to gen underline text to PDF?

Hi, I have many files in which have underline text, if it is possible to write a script for indesign only gen underline text to PDF?

View Article


Convert string array to array of numbers

Hello all,I need to help with converting string array "15,0,25,40" loaded from txt file to array of numbers so I can use it e.g. with geometricBounds like this:  tx1.geometricBounds = [15,0,25,40]; I...

View Article

batch-find-and-replace.jsx

Hi there, I wrote a batch-processing script for find change queries and thought I share it with you. You can get it over here  You can process GREP, TEXT, GLYPH and OBJECT searches.  PurpouseWhile...

View Article


Select all content of indesign document for attaching script

I have a script that does some useful operation for my document. But it always need have selected part of document, likeif( app.selection.length > 0 ) ...Could you ask me how can I select all pages...

View Article

how to create aid:pstyle with style name in indesign style group?

I have to create a style attribute in XML to apply style name for indesign flow, I can create style as style name in indesign as follows:<paraaid:pstyle="Heading1">........</para> but I can...

View Article


Script to autoflow multiple text files?

A publisher I'm working with is being slowed down by a necessary change to their workflow. Maybe there's a script around to help? I've looked but can't find any, so I'm posting here.   Old workflow:...

View Article

How to make a handwriting font look like real handwriting in InDesign CS5

This is a script I've written (AppleScript) that addresses the  problem most handwriting fonts have — they look like fonts, mostly  because they're settled so regularly along the baseline and their...

View Article

Not all cells in the table getting formatted except just the first one.

var doc = app.activeDocument,    _pages = doc.pages, i, j, k, l,    _textframes, _tables, _row, _cell, rownum;for (i = 0; i < _pages.length; i++) {    _tables = _pages.item(i).Tables;    for (j = 0;...

View Article
Browsing all 15932 articles
Browse latest View live