How to apply bold character style with grep
finding bold characters in a particular paragraph styleI want to apply a character style app.findGrepPreferences = app.changeGrepPreferences = null; app.findGrepPreferences.string = String.Bold; if...
View ArticleHow can I change values in an applescript dialog when the user enters...
I built a dialog in AppleScript. It works fine, but I want to add a feature (if possible). The trick I want to do now is to make the "Width" field update when the user completes the enabling group...
View ArticleTurn off preflight if certain document loaded?
Just wondered if this is even possible before I start! We have Live Preflight on by default all the time, but one large document that needs updating every now and then is so slow to work with when live...
View ArticleDoes LinkedPageItemOption do anything?
All the information that I can find on this property suggests that it's related to Alternate Layouts. We I create a page item in InDesign CC, create an Alt Layout, and then query the...
View ArticleDelete all character styles and preserve formatting
Hi scripters I need to delete all the character style using preserve formatting option in my document. how can i do this, with this i have started, myDoc = app.activeDocument;for(var j=0;...
View ArticleSyntax Highlighting in ExtendScript Toolkit
Is the syntax highlighting configurable in the ExtendScript Toolkit (CC version)? Thanks. -Rick
View ArticleChange bottom bound of multiple frames.
I wrote a super basic script to change the bottom bound of any text frame from 10.7 to 10.75, but it isn't working. Where am I going wrong? Thanks! var myDocument = app.activeDocument; for(s = 0; s...
View ArticleHow to map para style by script
Hi My indesign file has already some Group style, when I try to flow the XML file in Indesign that time same style of paragraph are not mapped with automatically. FYIHere 'TXT' style is already defined...
View ArticleOpening InDesign programmatically fails
Hi, i'm using the Indesign-Library ("Resources for Visual Basic.tlb") in C#. The following code should programmatically open InDesign, and works fine on one Computer:InDesign.Application gApp =...
View ArticleHow does one completely empty a text frame of all text -- including overflow?
Using something like myTexframe.contents = '' will only remove the visible text bounded by the frame and not any overflow. I need to empty the frame completely. Thanks.
View ArticlePrepend XMLElements and adding children?
I didn't know how to exactly write my question, as I have two different ones. Firstly: Is it possible to prepend XML Elements? I am adding xml elements via a custom panel, and at the end of the...
View ArticleINDD dialog default selection
my script as below: with(myDialog){with(dialogColumns.add()){ with(borderPanels.add()){ with (dialogColumns.add()){ var my1 =...
View ArticleIs there a way to connect two words or numbers in different frames?
Hello there.I have two text frames that thread to different pages. I want a certain word or number that appears in one frame to be on the same page as that same word or number on the other page.Example...
View Articleget swatches in dropdown list with color preview...
Hi experts, I am creating one gui for swatches related automation task in CS4 using javascript. Is it possible to get swatches in dropdown list with its color preview? Same like colors in Swatches...
View ArticleNew CS4 features
At Dave's suggestion, I'm starting a thread for discussing new scriptingfeatures is CS4. I'd divide new features into three categories: 1)improvements/additions to the InDesign DOM, 2) improvements to...
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 ArticleTab setting Clear
Hi How can I remove ALL tab settings from the specified paragraph Style. I think line no. 9 is error. Please advice. var mydoc = app.activeDocument; var mypstyle =...
View ArticleXML error message: "XX is an invalid table element or appears in the wrong...
Hi all, In my attempts to import an XML document I have begun encoding tables by means of namespace attributes. When I import the XML, I get the following error message: "<TEVLSTAT> is an invalid...
View ArticleJS: How to remove duplicate items from an Array?
JS: How to remove duplicate items from an Array?I guess there will be a simple way ...
View ArticleAbout event
Is there any event, for example I open 2 documents named, 1.indd and 2.indd, my activeDocument now is 1.indd, and then I go to 2.indd will auto run the script, and I go back to 1.indd will also run the...
View Article