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 ArticleScript 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 ArticledoScript (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 ArticleConvert 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 ArticleTable : 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 ArticleScript 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 ArticleEvent 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 ArticleActivating 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 ArticleJavaScript 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 ArticleJavaScript 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 ArticleSocket#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 ArticleHelp! '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 ArticleHow 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 ArticleConvert 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 Articlebatch-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 ArticleSelect 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 Articlehow 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 ArticleScript 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 ArticleHow 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 ArticleNot 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