Forum Replies Created
-
AuthorPosts
-
Kai Rübsamen
MemberMitchell, this seems possible. If you interested in a paid script, you can mail me directly at forum@ruebiarts.de
best
KaiKai Rübsamen
MemberHi Kaimar,
this isn’t possible with InDesign. You can try, if it works with the Autofit-plugIn from Typefi. However: Another way would be to give your images names and avoid the textframes first. After everything is done, a script could set the numbering based on the name.
If this doesn’t work for you, the script could remove the number in the selected frame and put it back after you have scaled the frame.
So, there are several things possible.
Kai
Kai Rübsamen
MemberI’m not aware of such a script. It must be written.
Kai Rübsamen
MemberSarah, it seems that my previous one wasn’t a good one.
Try this one:
Find what: (https?://|www\.)(([^/]+/?)+)/
Change to: $1$2Kai Rübsamen
MemberThis can be real XML, but it would also be possible that it is datamerge on the masterpage!
However: There is no reason for XML. So:
1. Watch David Blatner Training on Data merge at lynda.com
2. They should sent you .csv-filesKai
Kai Rübsamen
MemberHi,
I’m not a fan of scaling or tracking. It is always better to shorten the text, than to scale something :)
However:
This is only possible with a (paid) script: The script assumes, that the whole cell is overflowing and can then scale or track the contents, until the cell is not overflowing. This is dangerous, cause it can destroy your text …Kai
Kai Rübsamen
MemberGreg, try this one:
app.activeDocument.characterStyles.add({name: “test”, capitalization: Capitalization.CAP_TO_SMALL_CAP});
and then start it a second time ;-)
Kai Rübsamen
MemberHi Candice,
this happens, when you wrote something and you did not check, if this is correct :(
The mentioned script updated several TOCs in one doc. If you have multiple docs in one bookfile, the script must be rewritten.If you interested, you can contact me at forum at ruebiarts.de
Kai
Kai Rübsamen
MemberWhat is the benefit of doing these two steps with a script?
When you wrote such a script, you would normally check, if
a) a doc is open
b) a style with a name “small caps” already exists
c) the font has Open Type small capsSo there are more steps needed in scripting, than doing it “by hand”.
Kai
Kai Rübsamen
MemberThis is a bit tricky, cause otherwise slashes are removed in the middle, if you start a GREP a second time. Did you realize, that your GREP will find content between two URLs, cause the “*” is greedy?
Try this one:
((https?:|www\.).+)/(?!\w)This may not work in every case.
Kai
Kai Rübsamen
MemberHi Tim,
you should go with multiple layers instead of different documents. Second you should work with different sets of styles. One for us, one for de, because of hyphenation. If you plan your project, this isn’t a big deal.
Kai Rübsamen
MemberI wrote 2 or 3 weeks ago a script for the same task. You should find it, if you search after posts from me.
Kai
Kai Rübsamen
MemberRombout, if you have 200 pages, you would normally use a script for this task. There are several scripts available that can control the table inside a textframe and also the width of different columns.
Kai Rübsamen
MemberSome interesting stuff!
Alex has about 1200 conditions on 70 pages. With the line from Peter
app.documents[0].stories.everyItem().changes.everyItem().characters.everyItem().appliedCharacterStyle = app.documents[0].characterStyles.item(‘change’);
there is no result and I crashed InDesign after 15 minutes.
var curDate = new Date(); var oldStamp = curDate.getTime(); var allChanges =app.documents[0].stories.everyItem().changes.everyItem().getElements(); var nChanges = allChanges.length; for (var i = 0; i < nChanges; i++) { var curChange = allChanges[i]; var nCharacters = curChange.characters.length; if (curChange.changeType == ChangeTypes.INSERTED_TEXT) { for (var j = 0; j < nCharacters; j++) { curChange.characters[j].fillColor = "Magenta"; } } } var curDate = new Date(); var curStamp = curDate.getTime(); var difSec = (curStamp-oldStamp)/1000; alert (difSec);122 seconds
var curDate = new Date(); var oldStamp = curDate.getTime(); var allChanges =app.documents[0].stories.everyItem().changes.everyItem().getElements(); var nChanges = allChanges.length; for (var i = 0; i < nChanges; i++) { if (allChanges[i].changeType == ChangeTypes.INSERTED_TEXT) { allChanges[i].characters.everyItem().fillColor = "C=0 M=100 Y=0 K=0"; } } var curDate = new Date(); var curStamp = curDate.getTime(); var difSec = (curStamp-oldStamp)/1000; alert (difSec);30 seconds!
So it seems, that a combination of everyItem() AND getElements() + counting the length of something outside the for-loop is much faster.
Kai
Kai Rübsamen
MemberYou can sent it to forum@ruebiarts.de. Please provide a idml, not indd.
-
AuthorPosts
