Re: How to get attribute name and its values from xml using javascript?
In the below line i have used the alert,It shows empty space var Header = (root.xpath("/products/table/*/child::text()"));alert(Header);
View ArticleRe: Line count Help
Hi Jump_Over, Thank you for your immediate response.... With the help of my senior I got the below line, it works great but I struggle in single line.. myText.insertionPoints[0].contents = "hi"; //I...
View ArticleRe: How to get attribute name and its values from xml using javascript?
Hi, It seems that your xml doesn't match with the xpath, re-check your xml file. <products> <table> <SKU_Header.....>SKU</SKU_Header>...
View ArticleRe: How to get attribute name and its values from xml using javascript?
Thank u so much..Now its working..
View ArticleRe: Line count Help
Hi, Did you test my solution?Is it returning any errors? Introducing var n is uneffective since code can scope by 5. You can't alert object but string, so: var myLineCount = i; Jarek
View ArticleRe: Line count Help
Hi Jump_Over, I tested your solution. But I got error and alert content also differ. Even though you are always inspired lot of students like us. I got output for this request. Thanks for your valuable...
View ArticleRe: Finding a specific word and change other character on page
Thx for looking at my issue Jarek.It gave me a better look at GREP. I hoped it was a simple thing to solve, but i see now it is harder then it looks. Again thx for your help. Jeroen
View ArticleRe: from paragraph Style to "New Hyperlink Destination"
Hi Saud, Try the below script. var activeDoc = app.activeDocument; app.findGrepPreferences = NothingEnum.nothing; app.changeGrepPreferences = NothingEnum.nothing;...
View ArticleRe: find out a graphic in an xmlElement story
use evaluateXPathExpression statement to findout the specific element you want. Checkout some examples and try implementing it. e.g. evaluateXPathExpression("//graphic")
View ArticleRe: Capturing newly added contents
Any update from anyone that after switching ON the tracking changes and while doing changes in the InDesign file, script to identfy the newly added contents and apply the different character style?
View ArticleHow to capture the contents between the tags?
Hello All, I need to apply the separate character style for the punctuations between the tags, please refer the sample below: <cite>1</cite>,...
View ArticleRe: How to capture the contents between the tags?
I suggest capturing that punctuations in a seperate tag. Then it is easily possible.<cite>1</cite><x>,...
View ArticleRe: Soft returns not supported in Tagged Text (Unicode)
Hello Caleb,that very interesting that at import time with a Mac this "soft-return" will import correctly when the file ist unicode encoded. Can you open this "good" file wich a Hexeditor and post...
View Articleindex in dictionary ('real' dictionary, not indesign dictionary)
I'm making a dictionary for language A in language B and have difficulties with creating an index at the end (in language B). Here's the format: (word language A) (translation in language B) (other...
View ArticleRe: cleaning up text frames
As I mentioned, I'm trying to improve on the script so that any text box with no fill or stroke BUT with a text-wrap doesn't get deleted. I've modded the script in the following way: var stroke =...
View ArticleRe: Create a TOC in an actual table?
var mTOCstyle = app.activeDocument.tocStyles.item("TABLE OF CONTENTS"), mTableStyle = app.activeDocument.tableStyles.item("TOC Table Style For IPL's & OPM's"),...
View ArticleRe: cleaning up text frames
@Colin – at first glance, textWrapMode cannot be "None".That's a string.And you are asking for an enumeration. The answer in your case would be: TextWrapModes.NONE So, if you select a text frame, you...
View ArticleRe: Create a TOC in an actual table?
Hi, To fit column to its content means to find text.horizontalOffset vs. text.endHorizontalOffset max difference. So your code could look like:var mTOCstyle =...
View ArticleRe: Create a TOC in an actual table?
Hello thanks for the quick responses. When i run the last script version you sent it builds the table same as last time but doesn't resize columns and gives this error:I thought maybe "myT." was put in...
View Article