Spread Extract as JPEG not show image on spread
Hi Experts I create Indesign Document(CS5.5) file on MAC OS using script, which contain text and images on spread.My file is created sucessfully. Now I exterect spreads as image(JPEG) using...
View ArticleRe: Looping over all xml elements
Try this, #target InDesign;var doc = app.activeDocument;var xmlTag = doc.xmlElements[0];var vTag = xmlTag.evaluateXPathExpression("//v")for(var i=0;i<vTag.length;i++){ try {...
View ArticleFinding the right variable for "All" text.
So far, I'm a copy/paste javascripter and this one script has troubled me. These following formatting techniques I wanted to automate to adjust the copy in my documents, and it has worked until I tried...
View ArticleRe: ScriptUI Custom Events
Hi Marc, So I wasn' that far after all Thanks a lot. It's also very helpful and functional indeed. I like the idea on getting stuck to the event bubbling process. Best to all of you guys, Loic
View ArticleRe: ScriptUI Custom Events
Hey Marc, thanks for teaching me something new to me! If my recollection is correct, that's not supposed to work - but I'm very happy it does!!!
View ArticleRe: Finding the right variable for "All" text.
Just copy and paste this myTexts = app.activeDocument.stories.everyItem().texts[0]; // to change only the selection this line to change to: myTexts = app.selection[0]; myTexts.maximumWordSpacing =...
View ArticleRe: Need to apply table fill color based on text content
Someone did one script that apply a selected Cell Style base on GREP find results. Works perfectly even in CS6. Easy to use even if it is in Japanese! https://github.com/seuzo/regex_cellstyle
View ArticleHow will the Adobe Cloud feature affect my scripts?
Hi everyone, I have been writing JavaScripts for InDesign for 9 years and I have accumulated about 80,000 lines of finished code which fully automates the creation of very complex and time consuming...
View ArticleRe: Determine page item type from xmlelement
items[0].xmlContent.textContainers[0].constructor.name may not work in all cases.For instance, if you have simply tagged the text in a text frame or a text path thenitems[0].xmlContent would return...
View ArticleFind and change GREP characters
Hi, Is It possible to find and change a word (or character style) in the end of each paragraph line from a finded text. Is It possible to do this with a script? my...
View ArticleRe: Looping over all xml elements
Thanks! This works perfectly. Didn't know about XPathExpressions but it seems to be just what I needed.
View ArticleRe: Looping over all xml elements
Thanks for the suggestion cms_phil. I'm using CS6 so I couldn't get this code to work but I could do it with Cenchens suggestion.
View ArticleRe: Find and change GREP characters
Hi, Is it what you need? myFind[i].insertionPoints[-2].contents = SpecialCharacters.EM_SPACE; Jarek
View ArticleRe: Find and change GREP characters
Hi, Thanks for your reply. But I need to place before end of the word(Italic). above script is place end of the paragraph. hurix
View ArticleRe: Find and change GREP characters
Hurix, change your find as to find only chars at the end of the paragraph like this: app.findGrepPreferences.findWhat=".+$";app.findGrepPreferences.appliedCharacterStyle="Italic"; then just instert the...
View ArticleRe: Find and change GREP characters
Hi, I see... What about this: app.findGrepPreferences = app.changeGrepPreferences = null; app.findGrepPreferences.findWhat = "(\\<.+\\>)\\s*$"; app.findGrepPreferences.appliedCharacterStyle =...
View ArticleRe: Looping over all xml elements
Hi SimonLinden, My code its working perfectly only CS5.5. Becuase I include the path for CS5.5 version folder path. You just change the below line. You just change the below line and try again ....
View ArticleRe: How to move some xml element and its content to a new frame
Hi Chinnadk, You don't worry the xml tags appeared in the xml structure, you just export the XML the texts contaings the tag. also check with xml structure in InDesign. Note: if my script help full to...
View ArticleRe: How to move some xml element and its content to a new frame
Thanks csm_phil, sure ill do as you said above.
View Article