Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Browsing all 37788 articles
Browse latest View live

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 Article


Re: 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 Article


Finding 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 Article

Image may be NSFW.
Clik here to view.

Re: 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 Article

Re: 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 Article


Re: 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 Article

Image may be NSFW.
Clik here to view.

Re: 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 Article

How 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 Article


Facing pages align

Hi All, Is there any way to align facing pages via javascript.

View Article


Re: 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 Article

Image may be NSFW.
Clik here to view.

Find 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 Article

Re: Looping over all xml elements

Thanks! This works perfectly. Didn't know about XPathExpressions but it seems to be just what I needed.

View Article

Re: 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 Article


Re: Find and change GREP characters

Hi, Is it what you need? myFind[i].insertionPoints[-2].contents  =  SpecialCharacters.EM_SPACE; Jarek

View Article

Re: 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 Article


Re: 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 Article

Re: Find and change GREP characters

Hi, I see... What about this: app.findGrepPreferences = app.changeGrepPreferences = null; app.findGrepPreferences.findWhat  = "(\\<.+\\>)\\s*$"; app.findGrepPreferences.appliedCharacterStyle =...

View Article


Re: 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 Article

Re: 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 Article

Re: 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
Browsing all 37788 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>