Back

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

Forum Replies Created

Viewing 15 posts - 196 through 210 (of 372 total)
  • Author
    Posts
  • in reply to: Remove # character in the middle of document #93156

    Hi Aarti,

    if you have additional “#” on your page, then have have probably empty textframes. This can be free floating textframes or anchored textframes. Since those frames will create a so called div-elemenent during the epub-export and generate also CSS, it is good practice to remove them.

    So go to the find/change pannel, GREP tab and insert: \A\Z. If this will find something, click on escape and remove the frame.

    Kai

    in reply to: Adding Pages? #93144

    Dwayne, your stupid comments are not helpful for anybody and do especially not solve the problem! I would strongly advise you not to say anything if you have nothing to say.

    Malcom, thanks for a detailed explanation of the problem. It wasn’t my intention to yelling with you, sorry.
    If you want to apply the master B while creating new pages, you could do it in this way:

    (function () {
    var curDoc = app.activeDocument,
      allPages = curDoc.pages,
      nPages = allPages.length,
      curPage,
      i,p,
      newMaster = curDoc.masterSpreads.itemByName("B-Masterpage");
    
    for (i = nPages-1; i >= 0; i--) {
      curPage = allPages[i];
      p = curDoc.pages.add({appliedMaster: newMaster});
      p.move(LocationOptions.AFTER, curPage);
    }
    }) ();
    

    Kai

    in reply to: Adding Pages? #93124

    Malcom, if you write in an prof. forum, chances are good, that you get an answer within few hours. So if someone has a question, cause he don’t understand the problem, it is good practice to answer this question within few hours too ;-)

    Did you test the script? Seems that it would solve your problem. And yes, the script could also apply a Master B.

    Kai

    in reply to: Adding Pages? #93110

    It seems, that Malcolm has no interest anymore and like to do his job by hand. Since this: “So I need to insert a page after each, with the new copy?” is not clear to me, even if this means insert text (which kind of text? by hand? automatically?)

    Anyway: If someone wants to add pages between pages:

    (function () {
    var curDoc = app.activeDocument,
      allPages = curDoc.pages,
      nPages = allPages.length,
      curPage,
      i,p;
    
    for (i = nPages-1; i >= 0; i--) {
      curPage = allPages[i];
      p = curDoc.pages.add();
      p.move(LocationOptions.AFTER, curPage);
    }
    }) ();
    
    in reply to: Adding Pages? #93104

    Hi Malcom,

    the task is not clear! Insert a page after each is no problem. What do you mean with “new copy”? > Example!

    Kai

    in reply to: GREP to change style after "|" #93099

    ^[^|]+\|

    Beginning of a para
    followed by a character, that is not “|”
    one or more times
    followed by a “|”

    Kai

    in reply to: "Continued" on a continuing table header #93088

    Hi John,

    you could skip the first one, create your header with continued, write your information twice or create a text-variable for both cells.

    Kai

    in reply to: Help! Is sorting objects like this possible? #93065

    David, some kind of. You did not show the invisibles. How is the gutter controlled? > tracking and a high number of autoleading?

    Here is another idea: I would work with columns or threaded frames depending on the order. Every arcticle has its own paragraph. So spaces are controlled bei gutter or style.

    Kai

    in reply to: Help! Is sorting objects like this possible? #93061

    Kayla, your sorting order isn’t self explanatory, since the $300.000 comes between 329 and 315. However: There is no script needed if the document is built in a right way (everything is in one flow).

    If you interested sent me a document to forumATruebiarts.de and I will have a look at it.

    Kai

    in reply to: Help! Is sorting objects like this possible? #93049

    Your task is not clear, since a visual example is missig. Anyway: The easiest way would be, if everything is in one flow. Even if it is possible to script this, the scripter would probably spent hours to do this and this must be paid!

    Stephane, you can apply conditions with find/change. But realize, that all questions will stick together. I would assume, that a answer with 3 lines should show 3 blanks instead of complete removing?

    Kai

    in reply to: Script to print Found strings on an InDesign page #92927

    Sending money is possible via PayPal :)

    To your last question: I’m not sure, if I understand this correctly. Please sent me a testfile with 5 pages as idml to forumATruebiarts.de

    Kai

    in reply to: Script to print Found strings on an InDesign page #92925

    Hi Tim,

    here is your example. Realize that this is not the order by page!

    var list = [
      "(Genesis|Gen.?)",
      "(Psalms|Ps.?)",
      "(Jeremiah|Jer.?)",
      "(Moses)"
    ];
    
    var curDoc = app.activeDocument,
    nList = list.length,
    curListItem,
    strToSearch,
    found,
    foundList = [],
    curFound;
    
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findChangeGrepOptions.includeFootnotes = true;
    
    for (var i = 0; i < nList; i++) {
      curListItem = list[i];  
      strToSearch = "(" + curListItem + " d{1,3}[:–]d{1,3}([;–]d{1,3})?(, d{1,3})?(; d{1,3})?([:?]d{1,3})?)";
      app.findGrepPreferences.findWhat = strToSearch;
      found = curDoc.findGrep();
      if (found.length > 0) {
        for (var j = 0; j < found.length; j++) {
          curFound = found[j];      
          foundList.push(curFound.contents);
        }
      }
    }
    
    app.findGrepPreferences = app.changeGrepPreferences = null;
    
    alert(foundList);
    
    var tf = curDoc.textFrames.add({geometricBounds: [10, 10, 200, 200]});
    tf.contents = foundList.join("\r");
    

    Kai

    in reply to: Script to print Found strings on an InDesign page #92922

    Please provide your script and a little example as idml-file.

    Kai

    in reply to: Script to print Found strings on an InDesign page #92916

    Hi Tim,

    you can store your found, e.g. “myDoc.findGrep()”. You will get an array of paragraphs, words or other things. Later you can put the “.contents” of those objects together, insert a page at the end, create a textframe with the proper margins and insert your stored contents. To write a .txt with your found on the desktop would also be possible.

    Kai

Viewing 15 posts - 196 through 210 (of 372 total)