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

Re: Getting first occurrence of XML elements

If they are all in the same story I sort them by insertionPoint index using the Array.sort() method. I wonder if someone here has a better way.

View Article


Re: error with function in indesign cc 64bit

Try launching InDesign (and Extendscript Toolkit if running from there) as administrator.

View Article


Re: export page number as an attribute in the XML

Do you have an item tagged with this page node? You can get the page number relative to the document by pageItem.parentPage.documentOffset or I think parentPage.name gives you the page number by section.

View Article

Re: Getting first occurrence of XML elements

Hello Vandy, I do not know how your XML structure is built up, but perhaps in this way: var _firstXref = _root.evaluateXPathExpression("//Story[position()=1]/xref[@rid][posit ion()=1]");  Roland

View Article

Re: Startup script to load shortcuts — in a Citrix environment

Hey Mac, I'm not sure if this will work for you as I've only used it when making .bat files... but, in Windows, you can reference the folder directly by using the variable "%USERNAME%"...

View Article


Re: Startup script to load shortcuts — in a Citrix environment

Tlumbis, I'll check that out !!!   :-)

View Article

Re: Use of MergeTextFrames Script

I don't have MergeTextFrames so can't tell if you are doing something wrong. I have an ExtendScript that I use (not extensively tested); but you could try it. It looks for all stories in the document...

View Article

Re: Find BulletChar Font

Thanks so much J!!!! Initially I tried with your solution but missed array [d], that y confused.. HOwever your third solutions clear my doubts, and shown me, where i went wrong. thank you verymuch...

View Article


Re: ExportPDF single pages with heading text (content) in file name

This question about exporting to single PDFs and naming is coming up often. So much so that I have a dedicated blogpiece to it: http://colecandoo.wordpress.com/2013/07/13/breaking-up-is-hard-to-do-i...

View Article


Re: ExportPDF single pages with heading text (content) in file name

HI DAVID DAVA! TRY THIS app.findGrepPreferences = null;app.findGrepPreferences.appliedParagraphStyle = "Title"; result = app.activeDocument.findGrep(); while (result.length){   str=result.pop();   var...

View Article

Re: find rectangle fillcolor below 100

HI Forum, This is what i'm lookig for. To move different fillTints of the rectangle to different Layer.i.e. 20% of fillTint to be moved to itemLayer = "20% fillTints".30% to itemLayer = "30% fillTints"...

View Article

Re: Getting first occurrence of XML elements

Thanks for your reply roland. But it is not working fine. My XML structure will looks like this, <DOCUMENT><CN>1</CN><CT>Title</CT><p1>Sample Text Sample Text Sample...

View Article

Re: Script to activate the Color Separations Panel?

well now.. first of all i think we found a bug in CS5 at least. Please (anyone) try to duplicate my problem:1) open the Find Object dialog2) In the Find Object Format select the Fill Color Black....

View Article


Re: Script to activate the Color Separations Panel?

Hi, ... yeah. A bug with 6 years of history (at least), with no fix and no hope to answer...? Jarek

View Article

Re: Script to activate the Color Separations Panel?

yep.. buckets and buckets of fun...  i guess you can go around it, by getting a list of the app.swatches and indexes, and asking the user to select the proper black. still too ugly for soemthing that...

View Article


Re: Getting first occurrence of XML elements

If your structure is built in the same way as above, this XPath works fine:  var _root = app.activeDocument.xmlElements.firstItem();var _firstXrefID001andID002 =...

View Article

Re: Getting first occurrence of XML elements

Thanks Roland for your speedy reply. Really helps a lot. Vandy

View Article


Image may be NSFW.
Clik here to view.

not able to merge table cells

hello forum, i am using Indesign 5.5, having problem to merge table cells through scripting. i want to merge multiple cells in a table. i have merge first three merge coorectly, but my script not able...

View Article

Image may be NSFW.
Clik here to view.

Creating menu

  The script was running at the first time. when i close and reopen the application its error message i have attached screen shot for you reference.     #targetengine "HarbsTestMenu" menuInstaller();...

View Article

Re: not able to merge table cells

How many rows does this table have in the first place? The most likely problem is that because of the previous merges the number of rows left is such that there aren't enough rows left for f to be...

View Article
Browsing all 37788 articles
Browse latest View live


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