Back

If your email is not recognized and you believe it should be, please contact us.

Forum Replies Created

Viewing 15 posts - 106 through 120 (of 372 total)
  • Author
    Posts
  • in reply to: Can this be DONE ??? I really really hope so….. #96678

    Mitchell, this seems possible. If you interested in a paid script, you can mail me directly at forum@ruebiarts.de

    best
    Kai

    in reply to: Numbering graphic frames #96481

    Hi 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

    in reply to: How to fit text to table cells #96413

    I’m not aware of such a script. It must be written.

    in reply to: GREP – Removing the trailing forward slash from URLs #96410

    Sarah, it seems that my previous one wasn’t a good one.

    Try this one:
    Find what: (https?://|www\.)(([^/]+/?)+)/
    Change to: $1$2

    in reply to: First time job: data merge confusion #96405

    This 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-files

    Kai

    in reply to: How to fit text to table cells #96404

    Hi,

    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

    in reply to: Request a simple script for character styles … #96391

    Greg, try this one:

    app.activeDocument.characterStyles.add({name: “test”, capitalization: Capitalization.CAP_TO_SMALL_CAP});

    and then start it a second time ;-)

    in reply to: Update Table of Contents: InDesign 'Book' #96385

    Hi 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

    in reply to: Request a simple script for character styles … #96383

    What 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 caps

    So there are more steps needed in scripting, than doing it “by hand”.

    Kai

    in reply to: GREP – Removing the trailing forward slash from URLs #96374

    This 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

    in reply to: strategy request: one layout / two languages #96371

    Hi 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.

    in reply to: Update Table of Contents: InDesign 'Book' #96370

    I wrote 2 or 3 weeks ago a script for the same task. You should find it, if you search after posts from me.

    Kai

    in reply to: Setting different columns width as a style #96359

    Rombout, 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.

    in reply to: Apply color to all tracked changes in Story Editor #96240

    Some 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

    in reply to: Apply color to all tracked changes in Story Editor #96238

    You can sent it to forum@ruebiarts.de. Please provide a idml, not indd.

Viewing 15 posts - 106 through 120 (of 372 total)