How to remove a basedOn style without losing formatting
I have a problem that I've solved for my purposes, but I'm wondering if there's a cleaner solution. I have a function that removes the basedOn style from a paragraph or character style that is passed...
View ArticleHow can tell the script I want to save unsaved files but not replace the old...
Hi everyone I got this script var docs = app.documents; for (var i = docs.length-1; i >= 0; i--) { if (docs[i].saved == false) { docs[i].save(new File(“~/Desktop/Document.indd”));...
View ArticleJavascript question about objects
Hi, Let's say I've created a new object. One of the properties of my object is an array. I would like another property to return the length of that array. How do I do this. For instance here's some...
View ArticleHow to change Date Time toString?
Hi everyone I got this script var docs = app.documents; for (var i = docs.length-1; i >= 0; i--) { if (docs[i].saved == false) { docs[i].save(new File("~/Desktop/Doc" + (i+1) "-" +...
View Articlecleaning up text frames
hello all you smart guys. I get a big complex files from another designers every month for further processing. Among other not-so-good habits, they usually do not use layers.To make layout a bit more...
View ArticleImport MS Doc with comment
Hi,While import the word document to Indesign, the comment text not get in application. But I need, least the alert for this occurrence. If it possible to do this? If possible, can you please guide to...
View ArticleLine breaking at underscore
Hi, It looks like idesign is having a loop hole its breaking the line at different character other than space Download Breaking Words.rar from Sendspace.com - send big files the easy way I have...
View Article[AS ID CC2014] How to change character style in cells selection?
Hi, I've been racking my brain over this one for a while now and I can't come up with something that works. I know I can use this to applied a character style to ALL my text within the selected cells....
View ArticleJS/CC: Event upon layer change, possible?
Is there a way to be notified when the selected layer is changed for an open document in InDesign CC (2014)?I'd like to use this event in a CC (HTML) extension. InDesign_ScriptingGuide_JS.pdf / "Adobe...
View ArticleQuestion about Script UI image
Hi everyone we can insert an image into script like this:var w = new Window ("dialog", "Testing");var pics = w.add ("image", undefined, File ("~/Desktop/mingxing2.jpg"));w.show (); But is that...
View ArticleSpeedy Data Merge (in the background)
Hi,Doing this manually, after linking the source file etc. with the:Data Merge (Panel) > "Export to PDF" (Flyout)I'm able to export to PDF successfully without doing any of the steps that will...
View ArticleHow the ratiobutton call function?
Hi everyone I got this script var d=app.dialogs.add({name:”Define Empty Pages”}); var radioBtns = d.dialogColumns.add().radiobuttonGroups.add();...
View ArticleIs it possible to set a log level for ID and/or IDS when opening an IDML?
We're finding that it's taking an excessive amount of time (30-45 minutes) to open somewhat larger files (~100 pages) with many hyperlinks (~10,000). Is anyone aware of a way to add a command line...
View ArticleHow to tag elements with two tags?
With the following function I can tag xml elements with bold and italic tags. The problem is, I also need "<b><i>" for example. Now my question is, how is this possible? function...
View ArticleHow can I find out the form of a textFrame?
Hey guys, so when using "constructor.name" you can get the type of an object. In this case "textFrame". But how do you find out, if the textFrame is a polygon, an ellipse, etc? Sorry if this is...
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 ArticleWith CS4, some things have changed
This topic is not about new features but changes, primarily in the object model, that will affect scripts that run perfectly well under CS3.Bear in mind that as before, you can create a folder for...
View ArticleOverride Master Items Displaces items on page (Javascript)
Hi, I am trying to override all items in master pages using the follownig script: function OverrideMasterItems() { var allItems =...
View ArticleAIS CC: how undoing the actions of a JS run via app.doScript
Hello, AIS CC (9.0)I wrote a JavaScript, which I can properly run through app.doScript(UndoModes.fastEntireScript, etc.). Now, at a given time, I would like to programmatically undo the actions of my...
View ArticleSetting perameters for text format change
I'm pretty new to the InDesign scripting thing. A very good programmer previously took care of these at my company but he left and so I need to try to solve some problems related to new work. I've...
View Article