Forum Replies Created
-
AuthorPosts
-
Michel Allio for FRIdNGE
ParticipantDavid,
Why not if 1 line! … … but if 4? ;-)
I often (maybe too often) think more globally because if this fixes this problem now, that won’t fix another more complex later!! …
(^/)
Question: How post a screenshot here? =D
Michel Allio for FRIdNGE
ParticipantPeter,
Volander seems to be bored by an “underlined” title!
One way I use avoids, if his title has only 2 lines, to add “false spaces”, playing with 2 para rules (with no effect on the TOC)!(^/) ;-)
Michel Allio for FRIdNGE
ParticipantHi Peter,
If only 2 lines, 2 para rules.
If more, 2 para rules + 1 grep style: [^\r]. + 1 regex: find \x20 replace by $0\x20 [I suppose each line is separated by a soft-return](^/)
Michel Allio for FRIdNGE
ParticipantKai, I totally agree!
A very important point: They don’t want to pay … but they no more want to search if such a script has already been written by somebody!!
So I’ve decided now not to give code for free and … not to indicate them where they can find a free script!!!I know people will find I’m not cool! … but I don’t care and I remain a Jedi!
(^/) ;-)
Michel Allio for FRIdNGE
ParticipantJack,
In your case, you need consulting!
Maybe David has time to spend with you!
Not me! … And I’m not really sure the guys who tried to help you on the InDesign Adobe forum would be glad to read your present comments if they don’t run, as others and me, on the main forums about ID!
More people would need to seriously read the ID “help” giving by Adobe rather than spend time on forums to try to find someone to make their work for free!
Boring! :(
(^/)
Michel Allio for FRIdNGE
ParticipantKai,
Personally, no scripts for free now!
If somebody wants to save time (and money) using a script, it’s time for him (or her) to pay for Scripters’ knowledge!(^/)
Michel Allio for FRIdNGE
ParticipantHi,
If I understand well, you want to replace all “YYY XXXXXY” by, randomly:
CND 48248w
JND 28585i
WLU 10982m
DWJ 99209k
DMX 65542e
ORK 61765f
CCA 10155l
OUH 98115y
MQR 70956o
RHQ 60107h
…But, maybe I’m wrong and … the truth is out there!
(^/)
April 30, 2017 at 4:34 pm in reply to: Trying to resize a table, frame resizing but not table..? #93971Michel Allio for FRIdNGE
ParticipantHi Kaila,
(^/)
Michel Allio for FRIdNGE
ParticipantMichel Allio for FRIdNGE
Participant(^/) ;-)
Michel Allio for FRIdNGE
ParticipantI love this kind of answer: If you don’t want to have a problem, don’t do it! =D
Based on default settings, I do it in 1 click for all the doc, regardless fonts/sizes [to be parametered in the script].
2 char styles: “Underlined” & “Underlined_Superscript”.
(^/)
[Script not for free! — Beta]April 17, 2017 at 8:13 am in reply to: Script to apply paragraph style to text found in table cell #93731Michel Allio for FRIdNGE
ParticipantCool!
(^/) Join The Rebellion!
Michel Allio for FRIdNGE
ParticipantPSM\K2
(^/)
Michel Allio for FRIdNGE
ParticipantHi David,
That’s what I’ve called a “back door”!
Don’t search it! I’ve Invented the concept! =D
You use a “global” grep style but sometimes you don’t want it to be applied!
So, you include into it a “back door”!(^/)
April 14, 2017 at 7:28 am in reply to: Script to apply paragraph style to text found in table cell #93717Michel Allio for FRIdNGE
Participantfunction checkWhichTable() {
if (app.selection.length != 1) return null;
var currentTable = app.selection[0];
if (currentTable.hasOwnProperty(“baseline”)) currentTable = app.selection[0].parent;
while (currentTable instanceof Cell || currentTable instanceof Row || currentTable instanceof Column) currentTable = currentTable.parent;
if (!(currentTable instanceof Table)) return null;
return currentTable;
}app.doScript(checkUserSelection, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, “Process Table”);
function checkUserSelection() {
var a_table = checkWhichTable();
if (a_table == null) {
if (confirm(“No table selected. Do you want to process *all* tables?”) == false)
return;
allTables = app.activeDocument.stories.everyItem().tables.everyItem().getElements();
for (var a = 0; a < allTables.length; a++) processTable (allTables[a]);
} else processTable (a_table);
}function processTable(myTable) {
myTable.rows.everyItem().height = “36pt”;
myTable.cells.everyItem().autoGrow = true;
var myParas = myTable.cells.everyItem().texts[0].paragraphs.everyItem().getElements(),
P = myParas.length,
myTextInCell = [“Activity”, “Possible Answers”],
myParaStyle = “table H2”,
myRegEx = new RegExp(“b(” + myTextInCell.join(“|”) + “)b”);
for ( var p = 0; p < P; p++) if (myParas[p].contents.match(myRegEx)) myParas[p].appliedParagraphStyle = myParaStyle;
}//__(^/)
-
AuthorPosts
