-
1. Re: Wonky .jsx Scripts & InD CS5
John Hawkinson Jan 3, 2012 2:59 AM (in response to peterpica)Are there limitations on number of lines in a javascript?
Not appreciably. Many people regularly run scripts that are thousands of lines long or more without difficulty.
As described it sounds like a bug, in InDesign or in your script. I would add checking to your script to detect the failure condition and try to figure out why it goes wrong, and whittle it down to the smallest reproducible case. (Also, the scripting forum is probably more help than here...)
-
2. Re: Wonky .jsx Scripts & InD CS5
P Spier Jan 3, 2012 3:03 AM (in response to peterpica)I doubt this is a problem with the size of the script. I wonder if the text conversion parameters are constucted as precisely as you think and whether some bits are getting converted more times than they should.
What version of ID are you using? What you've illustrated above looks like it should be achievable with GREP styles, if not directly with a nested style, so I'm not sure why you would need the script at all.
-
3. Re: Wonky .jsx Scripts & InD CS5
peterpica Jan 4, 2012 8:03 AM (in response to John Hawkinson)Must be a bug in the smart styles conversion. (I use Wood wing's SmartStyles plugin.) I now just apply the smart styles AFTER all of the .jsx conversions are done and it's fine.
Thanks for tips.





