Forum Replies Created
-
AuthorPosts
-
Kai Rübsamen
MemberHi Emma, it is always difficult, if someone in a forum must guess, what might happen. So please provide a example file (both files). Your behavior isn’t the standard. And yes, if something is possible within CS6, it is also possible in CC 2015.
Kai
Kai Rübsamen
MemberBad code! This has nothing to do with Smart text Reflow. Sometimes the issue are empty paragraphs, empty textframes or css-page-break rules, that can cause a problem.
Kai
Kai Rübsamen
MemberWhat is an InDesign CS-document? Which version of InDesign do you use exactly? Can you provide an example of the InDesign-file and the finnished EPUB?
May 13, 2017 at 2:32 am in reply to: Clear Overrides Throughout Document on Particular Object StyleObject #94631Kai Rübsamen
MemberMichel, a line is determinated at least by a “;” So your short line have 2 lines ;-)
But: The goal in scripting is, to write readable scripts. If this is your style, putting everything in one line, avoid the use of parentheses, then this is no good practice.
And: If you work with pageItems.everyItem(), you will not get every items!
Kai
May 12, 2017 at 11:44 am in reply to: Clear Overrides Throughout Document on Particular Object StyleObject #94607Kai Rübsamen
MemberThis cannot be done with one line.
var oStyle = app.activeDocument.objectStyles.itemByName("b"); app.findObjectPreferences = app.changeObjectPreferences = null; app.findObjectPreferences.appliedObjectStyles = oStyle; var fund = app.activeDocument.findObject(); app.findObjectPreferences = app.changeObjectPreferences = null; for (var f = 0; f < fund.length; f++) { fund[f].applyObjectStyle(oStyle, true); }Kai Rübsamen
MemberI haven’t installed CC2017 on my machine, but Daves script isn’t running in CC2015 too. The reason is this part that starts at line 17:
switch (Number(String(app.version).split(".")[0])) { case 3 : case 4 : processStylesPreCS3(range, myStyles, aDoc); processPosnsPreCS3(range, myPosns, aDoc); break; case 5 : processStylesCS3(range, myStyles, aDoc); processPosnsCS3(range, myPosns, aDoc); }Change it to (remove everything except):
processStylesCS3(range, myStyles, aDoc); processPosnsCS3(range, myPosns, aDoc);
Nevertheless Preptext and Perfect Preptext seems to be the better solution, cause this will not apply e.g. bold to a headline, when the complete para is bold.
> And…what happened to the buttons at the bottom of the Scripts panel to run? You have to click at the top and then click on Run.
I did not understand, what you mean here.
Kai Rübsamen
MemberI’m not familiar with Dave’s script, but it sounds like it does the same as Preptext / Perfect Preptext from Peter Kahrel / Jongware?
What is the error-message with Dave’s version?
Kai
May 12, 2017 at 10:21 am in reply to: Using codes in frames to batch run images into InDesign spreads #94598Kai Rübsamen
MemberHi Clint,
this seems to be possible and there are some kind of scripts are available alreday. However: They must be rewritten / adopt to your workflow needs and this can be time consuming.
Kai
Kai Rübsamen
MemberWe had last week a similiar issue: https://creativepro.com/topic/apply-color-to-all-tracked-changes-in-story-editor
Kai Rübsamen
MemberMasood, no problem, but this will not work in a good way with GREP-Styles. The reason is simple: I assume, that Kelli have a long list and if it should work with a Grep-Style, you need a alternation. This can slow down the performance of the doc, so I would do it with find/change. Of couse, this can work with a alternation (Kelli|Masood|Kai) too, but is maybe confusing.
Kai Rübsamen
MemberKelli, this is possible with minor effort. But it’s not good practice (anymore) to call for a script and someone will write it for free. So if you interested in a paid version, mail me at forum@ruebiarts.de
Kai
Kai Rübsamen
Member> But in order for it to be effective, we need them to be in the correct order.
Why?
I assume, that is impossible! If you create a assignment, the order is not from top to bottom or left to right. The order is the order in which the textframes are created (cause every textframe has a gets a ID during the creatin). It seems that we can sort the storys in the assignments panel, but this will not affect the order in the story or galley view. However: If you change the order in the galley view, this will have also effect on the story view.
Normally you use the layout view, check the story out and change the view. If this is really important to you, we must check, if we can manipulate the order by scripting.
May 5, 2017 at 2:21 am in reply to: Script for automatically relink missing links with different file names #94242Kai Rübsamen
MemberIf the order doesn’t matter, then the task seems clear (90% ;-)). Please mail me directly at forum@ruebiarts.de
Kai
Kai Rübsamen
MemberIt’s clear, that you have a typo in the file. Did you use the epubchecker from pagina? > If not, this app shows you exactly the lines where you have problems and you can repair them.
Kai
Kai Rübsamen
MemberHi Guys,
the short answer:
this isn’t possible.The long answer:
If you deal with grep expressions, you must distinguish between literals (abc) and metacharacters (e.g. or ~|). As you see, there seems to be a difference in those kind of metacharacters. While everything with a “\” in front is a real regex-metacharacter, everything with a “~” is InDesign-stuff.If you search for text or for grep, you search within a string. If there is already an indexed word, you will find an anchor for that word. This anchor is displayed within a string with a InDesign-metacharacter. But from a technical point of view, there is also an index entry generated internally.
So, if you search for strings, you can only change a string to a string but you cannot generate and index entry! To make things complicated: While you can insert in the change-field e.g. \r you will get a return, but if you insert \u (character-class shortcut for any uppercase letter), you end up with “\u” as literal. Same if you enter “~|”
We talked in another topic about Peter Kahrels index-script. This is based on a character style, but can also be rewritten to deal with find-results. I dreamed, that we have also scripts, that deal with imported lists.
Kai
-
AuthorPosts
