Image not found to default image at Import Xml
Hi all, I have a problem when importing an xml-file.When an image cannot be found, indesign asks to select the file.I want to disable this and place a default "no_image.jpg" instead of the image.I...
View ArticleScript that Selects All items on active spread
I am trying to find a "simple" script that selects all items on the page whether they be a group or individual items without using a dialog window. Is there a simple selection javascript to select all...
View ArticleLooping over all xml elements
How do I loop over all the tagged xml elements in a story? I've created a reference to the xml elements of the story I want like this: var xmlStory = myDoc.xmlElements[0].xmlElements[0];In this...
View Articleresize pages based on elements
Hey,need to do this:I have multiple pages on single InDesign document, each page has one single text frame which contains a table with different heights. I'd need to resize the pages based on the size...
View Articleİn group object applied script
In one document, a text frame object style is applied, does not apply if the script with an object group.How can I solve this problem for(var i = 0; i < myBox.length; ++i) {...
View ArticleCorrect script
Hi everyone Could someone please correct my script please! var docs = app.documents; for (var i = docs.length+1; i >= 0; i++) { app.findGrepPreferences =...
View Articlehow can i find and replace xml tags?
Hi, i am using xml in my workflow and want to be able to remove certain tags if they contain particular text. here is an example of my xml structure… <entry> <name>DEFAULT</name>...
View ArticleMN Elements in XML Jobs
Hi All, I need to pull out the following marginal tags in XML jobs. I hope problem is in coding 18th line. Screenshot: Coding is below: var myDoc = app.activeDocument; var myLib = app.libraries[0];...
View ArticleSelect textframe on basis on textFrame.id
Dear All, I want to assign a variable myFrame to one of the textFrame present in a page by textFrame.id. var myDoc = app.documents.item(0);var i; for(i=0; i < myDoc.textFrames.length; i++) //...
View ArticleScriptUI: replacing images
When you use graphic files (such as PNGs) for images, you can change the contents of an image control. The following script sets an image (iconA) but immediately replaces it with iconB, so that by the...
View ArticleInDesign 7.0 breaks Visual Basic reference
I've previously posted this to the Indesign SDK & Scripting forums, but haven't gotten a reply.I thought I'd try again, rephrasing it a bit.When I installed Creative Suite 4, InDesign 6.0 installed...
View ArticleIs it possible to create a script that will replace text?
I havecreatedatemplate, and everydayI changethetextand the image source. Is itpossible to makeascriptthatreadafilewiththenewtextandthedestinationoftheimageandreplaceit?
View ArticleCS6 assign a point problem
I am using İndesign CS 6With this command a text frame does not stop at the exact locationbut When I give a space position comes tohow this problem can be solved var box1 =...
View ArticleHow to tell script colse all files and save, but no untitle docs
Hi everyone I want to colse the open files and save them but no those files which have never been saved. I try this script but after ran, all the files are no be saved. var docs =...
View ArticleGrep - Discretionary hyphen and discretionary line break
Hi,Trying to inset the discretionary hyphen in before the "m-dash word" and discretionary line break after the m-dash. If applied type styles with-in this text (bold & italic), before the first...
View ArticleHow about the grep command must be written
as the picture taking comma referencefirst to the right square brackets "[" or open parenthesis "(" and left first square brackets "]" or open parenthesis ")"character style How to apply var doc =...
View ArticleInsert anchored object indesign cs5
Hello, I'm trying to add anchored objects to textframes.Using CS6, it's possible with function : textframe.anchoredObjectSetting.InsertAnchoredObject. But with CS5, this function doesn't exist... My...
View Article[JS] Find/Change on all text frames on a single page?
Hi, Is it possible to perform a .changeGrep() on all text frames on a single page only? This code gives me "myPageFrames.changeGrep() is not a Function" var myPageFrames = myNewPage.textFrames;...
View Article[JS] CS6-> How to insert character at first location in text style range
Hi I have a string of text which has an anchored text frame at the first character location in a Text Style Range.The way I normally update text is to insert text around any anchors, and that works,...
View ArticleHow to keep track of all the classes/methods/properties created in a long script
Hi, I'm curious to know what method people use to keep track of all the classes, methods, and properties you've created when writing a longer script. For quick scripts, this isn't a problem. But for...
View Article