Delete first empty row in a table
Hi, Can you please provide the script for the below requirement. Need to delete First empty row in all the tables. (Tables having more number of empty rows. i need to delete first empty row only)...
View ArticleUndefined Variables
I have the following piece of script, used to import xml files from a folder to a template, but I can't get it to work.var myTemplate = File("/E/template.indd"); var MyFolderWithFiles =...
View Articlewe need a script that will select clipping path for multiple images in indesign
this is what we have, but it's not working: app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll; app.doScript(resetAllClippingPathsToActiveDoc,...
View ArticleI have two textframes on one page. But when iterating using everyitem() it...
Hi Expert'sI have two textframes on one page. But when iterating using everyitem() it picks second prior to first? var ObjDoc = app.activeDocument; var LstPara =...
View Articlescript with replace some of the characters respectively
I want to change some of the characters respectivelywhere error app.findGrepPreferences = app.changeGrepPreferences = null; app.changeGrepPreferences.appliedFont =...
View ArticleWith CS3, some things have changed
Let's use this topic to record changes that are likely to affect a working script. As I did in the CS2 comparable topic, I'll add an index here in the topic title when the list is long enough (and I...
View ArticleLine number of selected text from footnote
Hi, I can get the line number of selected text from document but throwing the error for footnote. How can i get the line number for text from footnote. Can anyone guide me... function...
View ArticleHow do you use JS to open a Folder dialog
If you use this to open a dialog box to select a file: File.openDialog("Select your XML File", "*.xml") The how do you open a dialog to select a folder. I would think it would be something like...
View ArticleSet top and bottom inset spacing values in Text Frame Options via jsx script
I am looking for a way to set the top and bottom inset spacing values only to 2 points in Text Frame Options via a .jsx scrpt.For years, I have used a script that sets Preferences, such as:...
View ArticleOverride elements by script problems
I need to override elements by script and have them end up at the same place they were in master. Now it overrides and puts them to the new page but it changes their position. Here is my function:...
View ArticleCan't ungroup
Hi,I trying to ungroup the page items, the error displayed as per below, some hidden frames also displayed. What is this (Brown frame), and guide to me. Code here: var myPages =...
View Articletab leaders in tables
Hi, Anyone please suggest my code errors? I need the leader dots in every first column of all the tables. tabs need to be stop before 6pts of the column width. var myDoc = app.activeDocument; var...
View ArticleNeed help installing first .jsx script for InDesign CS4 6.0.6 under Windows 7...
Hello, I'm trying to use a first .jsx script for InDesign.The script install manual said to open my scripts panel and right-click on the folder andchoose "Reveal in Explorer" However, this choice is...
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 Articlefind a column widh
Hi, How to find a table column width in script; i need to find out the first column width. Regards,
View ArticleAlign Inline Equation to Baseline
Hi, I found this code to align line objects to baseline from this forum. But its throwing error (null object). var fp = app.selection[0].graphics[0].itemLink.filePath;var f =...
View Articleadd tab dots
Hi, I am in new to scripting; i need the leader dots in every first column of all the tables. Please correct my code. var myTable =...
View Article[AS] How to test the presence of at least one table?
Hello everyone, I would like to test for the presence of at least one table in a document before starting a process (on edge strokes). I found this, but I do not know if this is really effective:...
View ArticleExport selectd text as a jpeg
Please review my code, i am not able to get all the indesign files information as per my code, i can export only first two files, then the loop repeatedly process the second file only,not getting 3rd...
View ArticleMySQL to InDesign
Hi, I currently have the data for a book in a MySQL database. One table contains the book metadata (title, subtitle, ISBN, etc.) and another contains the chapters (title, text, etc.). The chapters...
View Article