
FRIdNGE
Guide
FRIdNGE
Guide
Activity
‎Mar 08, 2025
12:49 AM
1 Upvote
Reading your screenshot, light version [ at your own risk! =D ]: (\(|[\d.]+,\h)\K[\d.]+(?=.*\)) (^/)
... View more
‎Mar 08, 2025
12:20 AM
2 Upvotes
Grep Style 1: \(([\d.]+,\h){0}\K[\d.]+(?=.*\)) Grep Style 2: \(([\d.]+,\h){2}\K[\d.]+(?=.*\)) Grep Style 3: \(([\d.]+,\h){4}\K[\d.]+(?=.*\)) Grep Style 4: \(([\d.]+,\h){6}\K[\d.]+(?=.*\)) Grep Style 5: \(([\d.]+,\h){8}\K[\d.]+(?=.*\)) … (^/)
... View more
‎Mar 07, 2025
07:37 AM
2 Upvotes
Just For Comment: Supposing someone only wants to colorize numbers between parenthesis! … [first, third, fifth, seventh, …] In this case, alas, Eugene's Grep code gives us an error on each text line! Personally, I've never thought trying to write an "magical" unique Grep code is the fastest and best way to play!! But write a simple Grep code we can duplicate is a way I often use, faster and simpler to play, with more control too! 😉 Here: Grep Style 1: \((\d+,\h){0}\K\d+(?=.*\)) Grep Style 2: \((\d+,\h){2}\K\d+(?=.*\)) Grep Style 3: \((\d+,\h){4}\K\d+(?=.*\)) Grep Style 4: \((\d+,\h){6}\K\d+(?=.*\)) Grep Style 5: \((\d+,\h){8}\K\d+(?=.*\)) … The numbers in pink gives us the number place between parenthesis. To get the second, fourth, sixth, eighth, tenth number, just change: 0 => 1, 2 => 3, 4 => 5, 6 => 7, 8 => 9. (^/) The Jedi
... View more
‎Mar 06, 2025
08:22 AM
1 Upvote
That will play ALL THE TABLES AND ONLY THEM: var myDoc = app.activeDocument;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\d+[,.\\d]+\\d+";
var myFound = myDoc.findGrep();
var F = myFound.length, f;
var temp;
for ( f = F-1; f >= 0; f-- ) {
if ( myFound[f].parent.constructor.name === "Cell" ) {
temp = myFound[f].contents.replace(/,/g, '#');
temp = temp.replace(/\./g, ',');
myFound[f].contents = temp.replace(/#/g, '.');
}
}
app.findGrepPreferences = app.changeGrepPreferences = null;
alert( "Done! ..." ) (^/) The Jedi
... View more
‎Mar 04, 2025
05:49 AM
Of course, after some relevant work as correctly parameter the main TOC and its babies, you will just need 1 click to get such the result shown in the pdf. If update of the TOCs, alas you will need to run the Script again!! (^/)
... View more
‎Mar 04, 2025
05:11 AM
… Finally something like this pdf (built from my own test-doc created 5 years ago)! (^/)
... View more
‎Mar 03, 2025
01:52 PM
@gritsbrits Private Message sent. (^/)
... View more
‎Mar 03, 2025
02:19 AM
Une approche intéressante que j'ai personnellement utilisée il y a longtemps pour des clients. Mais j'avais déjà constaté à l'époque certaines limites d'alignement (vertical/horizontal) en lien avec la police utilisée (ici, Minion Pro) … Exemple : (^/) The Jedi
... View more
‎Mar 02, 2025
02:10 AM
1 Upvote
… If you prefer Scripting [that will clearly play the Regex defined in my previous post]! 2 versions: • SCRIPT 1: Only 1 TOC --> no need to place the cursor in the TOC or select something … • SCRIPT 2: Only 1 TOC --> place the cursor inside the TOC, or Several TOCs --> place the cursor inside the right TOC. /*
_FRIdNGE-0801_TocUpdate.jsx
Script written by Michel Allio [01/03/25]
See: https://community.adobe.com/t5/indesign-discussions/tabla-de-contenido-horizontal-en-indesign/td-p/15184719
*/
// To Be Defined -------------------------
var myParagraphStyle = "Title_2 - TOC";
var myReplacement = "\\s\\x{2014}~S";
// ---------------------------------------
// SCRIPT 1:
// Supposing there's only 1 TOC:
var myStories = app.activeDocument.stories, S = myStories.length, s;
for ( s = 0; s < S; s++ ) if ( myStories[s].storyType == StoryTypes.TOC_STORY ) {
var myTocStory = myStories[s];
myTocStory.insertionPoints[0].select();
app.menuActions.itemByID(71442).invoke();
break;
}
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\r(?=.)";
app.findGrepPreferences.appliedParagraphStyle = myParagraphStyle;
app.changeGrepPreferences.changeTo = myReplacement;
myTocStory.changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.selection = null;
/*
// SCRIPT 2:
// Supposing there's 1 TOC. So place the cursor inside the TOC:
// Supposing there's several TOCs. So place the cursor inside the right TOC:
app.menuActions.itemByID(71442).invoke();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\r(?=.)";
app.findGrepPreferences.appliedParagraphStyle = myParagraphStyle;
app.changeGrepPreferences.changeTo = myReplacement;
app.selection[0].parentStory.changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.selection = null;
*/ (^/)
... View more
‎Mar 01, 2025
12:49 PM
I don't think my Regex is so obvious as some try to indicate us (without giving their own proposal)! if you have in mind a much more simplistic Grep syntax, I take it! 😉 (^/)
... View more
‎Mar 01, 2025
09:07 AM
Sure a simple regex will be enough! … (^/) The Jedi
... View more
‎Feb 27, 2025
09:13 AM
First, cut the anchor_1 (copied in the clipboard): Then, simply this Regex + Change All: (^/)
... View more
‎Feb 27, 2025
08:56 AM
Simplistic as usual! … To apply everywhere, a simplistic Grep Find/Replace will be enough! (^/)
... View more
‎Feb 27, 2025
03:17 AM
You mentioned a thread in your question! Read my 2 last comments. (^/)
... View more
‎Feb 26, 2025
12:42 PM
1 Upvote
What I called in this old thread of december 2019 … a double-anchoring! (^/) The Jedi
... View more
‎Feb 21, 2025
11:15 AM
2 Upvotes
In fact, again clearly something like that: (^/) The Jedi
... View more
‎Feb 15, 2025
07:08 AM
Basically, something like that: /*
_FRIdNGE-0799_ColumnCellsSelectionBasedOnActiveCell.jsx
Script written by FRIdNGE, Michel Allio [15/02/25]
See: https://community.adobe.com/t5/indesign-discussions/is-it-possible-to-only-select-the-cells-in-a-column-that-have-applied-quot-body-quot-cellstyle/td-p/15155765
*/
app.doScript("main()", ScriptLanguage.javascript, undefined, UndoModes.ENTIRE_SCRIPT, "To Layout! …");
function main() {
// Place the Cursor in any Cell:
var myCell = app.selection[0].parent;
var myCellStyle = myCell.appliedCellStyle;
var myColumnCells = myCell.parentColumn.cells;
var C = myColumnCells.length, c;
var myCounter = 0;
for ( c = 0; c < C; c++ ) if ( myColumnCells[c].appliedCellStyle === myCellStyle ) {
// Treatment To Be Done:
myColumnCells[c].fillColor = "red";
myCounter++
}
alert( "On Column " + Number(myCell.parentColumn.index+1) + ": " + myCounter + " Cells")
} This Script will apply a "red" color to all the right cells of a column. (^/) The Jedi
... View more
‎Feb 14, 2025
09:07 AM
I've found an old Script written for a client 7 years ago [mai 2018]. I've added a "B" version to make it more fun! … Simple Process: • The op opens a book with docs using a basic page numbering on parent pages [I mean e.g. just "A"]. • [s]he runs the first Script [_FRIdNGE-0798A]. It mainly creates the "Total Pages Number" text variable in all the docs and accessorily updates the book page numbering. • [s]he opens any document, jumps to any parent page with a page numbering text frame and types the right header text (here: "page A on ") and finishes by inserting the "Total Pages Number" text variable. WARNING: the op needs now to select the header text and copy it in the clipboard. • [s]he runs the second Script [_FRIdNGE-0798A]. It mainly updates the header text on all the parent pages and accessorily updates the book page numbering. Now, if the Layout moves by pages addings/removings, or, e.g., if new documents are added (or removed) at the end of the book, the op will still just need to update the pages numbering by running the first Script [_FRIdNGE-0798A] again. So just "1 click"! 😉 (^/) [paid Scripts]
... View more
‎Feb 13, 2025
06:55 AM
I'm not a "Community Expert". (^/)
... View more
‎Feb 12, 2025
03:09 PM
Smple way to play the game: Create a personalized Text Variable you can call "Total Pages Number" and give to it the total pages current number of the book, e.g. "142". If, in the future, this number changes, just modify this number in the main document (doc_1.indd here). Insert this Text Variable on the parent Pages of all the Book documents, with the Page Number, as, e.g. "Page A of 142". To finish, make sure the "Text Variables" are checked in the Book Synchronization Settings … Select All the Documents and Synchronize them! That's all! I've added 14 pages in the book! It took me 23 seconds to change the number of the Text Variable in the doc_1.indd, select all the documents in the Book Palette and synchronize. (^/) The Jedi
... View more
‎Feb 12, 2025
02:12 AM
1 Upvote
As you can see in the Grep F/R [french] window, I use the Grep Code provided by the op [I've just added a "?" to make the Found more precise, but the op's code remains correct]. My Script is based on this Grep F/R with finally 4 Found! (^/)
... View more
‎Feb 12, 2025
01:49 AM
😉
... View more
‎Feb 12, 2025
12:53 AM
Why do you want to select these texts? [to make what…] (^/) The Jedi
... View more
‎Feb 11, 2025
11:54 AM
To answer to @James Gifford—NitroPress, if you wanna play with a more sophisticated layout: Posted 7 years ago, and always Just For Fun! https://youtu.be/QjwdQ8kNfi4 (^/)
... View more
‎Feb 11, 2025
09:03 AM
You could use an invisible auto-num for your Endnotes and catch its numbering in the Text Variable with something like this: <paraNum /> If you add or remove Endnotes later, you will just need to update the Cross-Refs. 1 click! 😉 (^/) The Jedi
... View more
‎Feb 11, 2025
03:16 AM
1 Upvote
A totally simplistic idea quickly done (for fun)! … I just use a basic Paragraph Style with a Paragraph Border (blue color ==> [Paper]) and a Paragraph Shading (red color)! (^/)
... View more
‎Feb 10, 2025
11:33 AM
Just For Fun! … with just a basic para style applied! (^/) The Jedi
... View more
‎Feb 07, 2025
06:26 AM
In my opinion, the hardest part here is typing your text! … "1 click" on the Script seems to me … relatively easy! 😉 (^/)
... View more
‎Feb 06, 2025
06:02 AM
The regex will find ALL the ":" followed by a char that is a "\S" That means no catch if the ":" is followed by a normal space, a no-break space, a tab, a carriage-return, a soft-return, … (^/)
... View more
‎Feb 06, 2025
05:48 AM
Yes! You simply search ":" (^/)
... View more