Script that will show the character count of all carriage resturns
I have found a bug when exporting an indd to idml. If a a carriage return falls in a character count that is a multiple of 8000 + 1 it is converted to a paragraph separator (u2029). I am in the process...
View ArticleRe: Script that will show the character count of all carriage resturns
@Blujely – to see that right: if character \n is at position 8001 (or a multiple of that) in, and here I'm not sure what you exactly mean: 1. The actual Story in an InDesign file? 2. The...
View ArticleRe: Why doesn't the #target directive work in InDesign CC scripting?
After CS6 InDesign was completely converted to 64-bit application.However for windows platform 32-bit version was still supported. Hence for Windows 32-bit and 64-bit both type of versions were part of...
View ArticleRe: math / array / matrix-question
Good morning, splitted the sourcearray to its 'cols' and 'rows' to compare each with the resultarrays. Solved Hans
View ArticleHelp, please, with a beforeQuit script
The script uses a beforeQuit event handler to copy InDesign libraries from one folder to another. Some of the libraries are large and the process takes a while. I would like to display a progress bar...
View ArticleRe: Script that will show the character count of all carriage resturns
@Laubender Thank you for responding. I was referring to what you said in number 1 above. It is the character count from the beginning of any story. I have actually tested it on two different stories in...
View ArticleRe: Script that will show the character count of all carriage resturns
Okay I have the DOMVersion it is 8.0
View ArticleRe: cleaning up text frames
I think I might try something simpler next time... climbing Mt Everest perhaps. have made a testfile that I am sure covers any instance where a clear box should stay/be deleted:...
View ArticleRe: math / array / matrix-question
Hi Hans, Just a quick note although your question is solved. Provided that your matrix is 5×5 you could easily map any element to a single character in the set { A, B..., Z } (for example). Then your...
View ArticleRe: Script that will show the character count of all carriage resturns
@Blujely – The DOMVersion number refers to the InDesign version number (in your case v8, InDesign CS6 or its CC equivalent). A quick test in my InDesign CS5.5 v7.5.3 on Mac OSX 10.6.8 in this regard...
View ArticleRe: Script that will show the character count of all carriage resturns
@Blujely – about your initial question about showing a specific character at an n-th position in a story, you could use a simple GREP search in InDesign and restrict that search to a specific story...
View ArticleRe: Script that will show the character count of all carriage resturns
Sorry. That GREP cannot work or is leading to false assumptions…Because "\n" seems to be not in the class of "." in GREP speak. I'll try a different approach that includes all white space in the search...
View ArticleRe: Script that will show the character count of all carriage resturns
That GREP could work for every 10th position: (?<=[\s\w]{9})\n Or every 8001th position: (?<=[\s\w]{8000})\n Uwe
View ArticleIDCS6 MACOSX JS: Data Merging many txt files one after another
Hello everybody. I have a situation where I have to data-merge many text files to the one actual indesign "base" file. The formats of the databases are all the same, the point of difference is a code...
View ArticleRe: Help, please, with a beforeQuit script
Hi Robert You can use vb and applescriptTo display a simple alert that won't close on the application quite is quite simple.Note the use of the 3 quote marks.A progress bar is more complicated....
View ArticleRe: Place image into table cell based on text value
Hi Kevin, Try this... var doc = app.activeDocument; cells = doc.stories.everyItem().tables.everyItem().cells.everyItem().getEleme nts();for (var i=0; i<cells.length; i++){ cell =...
View ArticleInDesign CC addEventListener not work
Don't work in InDesignCC addEventListener: var w =new Window ("dialog");var b = w.add ("listbox", undefined, "Qwerty");b.addEventListener("click", function (k){ alert("detail: "+k.detail+'\r'+"X: "+...
View ArticleHow to apply a Character Style that's already been made in a template document?
First of all I'd like to thank everyone that helps. I'm a complete beginner at scripting and appreciate all your help. I'm basically using GREP expressions to find patterns in a document and apply a...
View ArticleRe: How to apply a Character Style that's already been made in a template...
app.changeGrepPreferences.appliedCharacterStyle="A";
View Article