Back

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

Forum Replies Created

Viewing 15 posts - 211 through 225 (of 372 total)
  • Author
    Posts
  • in reply to: Sign off/Legend Script #92913

    Chris, this seems to be possible. Since the solution depends on your needs, such a script must be written for you and the scripter should be paid for that.

    Kai

    Are, without studying your code: You are right! “myDoc.findText()” find everything in the document and not per page. The problem is: There is no “per page”-option via scripting. So you need to loop through all pages, find your labeled textframe on the current page, find one or more tables on the current page. Then you have the choice, either compare the contents of the cells or do it with fc in the whole table.

    Kai

    in reply to: Gutter in text frames – default value #92861

    Hi Luiz,

    the defaults of a textframe are based on the [Basic Text Frame] object style. If you change this style within a document, all new textframes will get the new gutter. If you change the style when no doc is open, all textframes in all new documents will get the gutter.

    Kai

    Hi Chris,

    what does “based on my style-selected Master Pages” mean?

    I would assume, that you must activate Layout Adjustment per document. Then change one document and try to sync all documents in the book with this first doc.

    Kai

    in reply to: Script to apply master page based on style sheet #92824

    What is wrong with Peters version?

    (function () {
    
    var curDoc = app.activeDocument;
    // reset everything to 'A-Master'
    curDoc.pages.everyItem().appliedMaster = curDoc.masterSpreads.itemByName("A-Master");
    
    var allParas = curDoc.stories.everyItem().paragraphs.everyItem().getElements();
    var nParas = allParas.length;
    
    for (var i = 0; i < nParas; i++) {
      var curPara = allParas[i];
      if (curPara.appliedParagraphStyle.name == "h1") {
        var parPage = curPara.parentTextFrames[0].parentPage;
        parPage.appliedMaster = curDoc.masterSpreads.itemByName("B-Master");
      }
    }
    
    var allPages = curDoc.pages.everyItem().getElements();
    var nPages = allPages.length;
    
    for (i = 0; i < nPages; i++) {
      var curPage = allPages[i];
      // check, if the page is either empty or the first text frame has no contents
      if (curPage.pageItems.length == 0 || curPage.textFrames[0].contents == "") {
        curPage.appliedMaster = curDoc.masterSpreads.itemByName("B-Master");
      }
    }
    
    }());
    

    It should work if the textframes are aligned at the margins and if you turn on “Enable Layout Adjustment” in the Margin and Columns panel. Then change the margins on the masterpages.

    Kai

    in reply to: Batch File Naming #92572

    I`ve no idea, if a script started in InDesign could rename a file on a HD while the file is open, even this is possible on a Mac in the UI? But a script could surely open a file, read the contents of a specific character style and save a copy of that file in a specific location.

    Kai

    in reply to: GREP to change all digits to another font #92556

    Hi Tommy,

    perfect post: Friendly hello and a example. Well done!

    Since your parts are tagged: Why not apply a paragraph style with Garamond to the whole paragraph and a character style for the Japanese font? The character style could then applied to the tag with the mapping feature and a grep-style like \D >> everything except digits.

    Kai

    in reply to: Table – Cell Style Height – WHEN WILL WE GET IT?? #92501

    InDesign-tables are fully scriptable. You can find some scripts here at indesignsecrets and in the Adobe scripting-forum.
    E.g. if you want to set all cell heights in all tables in your document:

    app.activeDocument.stories.everyItem().tables.everyItem().rows.everyItem().height = "7mm";

    Kai

    in reply to: I get an extra sort of frame when placing taext #92285

    Textwrap? Screenshot?!

    in reply to: Find/Change single "end of paragraph" breaks but not double? #92283

    Hi Jeremy,

    if you want to have real control, I would try it this way:

    1.
    Find what: (?<!~b)~b(?!~b)
    Change to: \x20

    2.
    Find what: \x20{2,}
    Change to: nothing

    3.
    Find what: ^~b
    Change to: nothing

    Some explanation: It’s always good practice to have an overview. So there are several steps needed. First remove those unwanted returns (1). Since \r will also find pagebreaks, use ~b instead. So the first one will find a return, that is not preceeded or followed by a return. Since you cannot guarantee, that there is a space already or not, insert a space and remove double space if needed (2). I assume, that you apply a para style with space after. So remove the empty return (3)

    Kai

    in reply to: InDesign to Excel #92191

    Hi Masood, I would think, this is possible. A script could collect the content and write it to a csv. A problem could be, that the para styles do not correspond with your datafields. So this need a little love.

    However: This is a request for a paid script!

    in reply to: XML to InDesign in tabulated form #92158

    Masood, it seems, that you do this without a XSLT. I’m pretty sure, the removing of the tabs could be made simpler. But your video looks interesting.

    Could you provide demo-files as well? > 10 lines would be enough.

    Thanks
    Kai

    in reply to: Setting language to No Language #92094

    Hi Dan,

    maybe this is helpful: https://forums.adobe.com/message/4073579#4073579

    For me this is working: curDoc.paragraphStyles[3].appliedLanguage = “$ID/[No Language]”;

    Kai

    in reply to: Add a text to a Ellipse (circle) Frame #92011

    Create the image as separate rectangle and group it with your textframe. Don’t use a separate rectangle and a textframe. The textframe can have a dark background as well ;-)

    Group your 2 frames and paste into a ellipse.

    Kai

Viewing 15 posts - 211 through 225 (of 372 total)