Back

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

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • in reply to: Find/Change dialog missing #96949
    Digby James
    Participant

    Ah! Spoke too soon. Just redid the rebuilt preferences and Find/Change is back again. Probably one of my fingers failed to hold down the CTRL key.

    in reply to: Find/Change dialog missing #96948
    Digby James
    Participant

    And as an aside, InDesign 5 on the same machine does NOT have the problem.

    in reply to: Find/Change dialog missing #96947
    Digby James
    Participant

    Thanks for the reply. Did that. Nothing happened, apart from the background shade changing. Still no dialog. Tried logging in as another user and Find/Change works there, so clearly a problem with my main user. I’ll have to do some more digging.

    in reply to: Script to apply master page based on style sheet #92827
    Digby James
    Participant

    I don’t know what’s wrong with Peter’s version. But I do know that changing the master page name to the one I use and it works brilliantly. That’s just what I wanted.

    I’ll now study it with greater care to try and get my head round the niceties of Javascript.

    Thank you.

    in reply to: Script to apply master page based on style sheet #92775
    Digby James
    Participant

    As a follow up, I’ve been watching the videos by Keith Gilbert on scripting InDesign on Lynda.com and have got the following to work:

    // Simple script to apply master page based on style sheet
    // My chapters always start with a heading set to “Heading 0 Chapter”
    // The applied master page for a chapter start is always “CSt-Chapter Start”
    // This master page is also applied to the verso if it is blank

    // Contents of script cribbed from various here: https://forums.adobe.com/thread/1562081

    var myDocument = app.activeDocument;
    var myParas = myDocument.stories.everyItem().paragraphs.everyItem().getElements();
    var myPage = myDocument.pages;
    for(i=0; i<myParas.length; i++)
    {
    if(myParas[i].appliedParagraphStyle.name == “Heading 0 Chapter”)
    {
    //Works only in CS5 and later
    myParas[i].parentTextFrames[0].parentPage.appliedMaster = myDocument.masterSpreads.item(“CSt-Chapter Start”);
    //for CS4 use this
    //myParas[i].parentTextFrames[0].parent.appliedMaster = myDocument.masterSpreads.item(“B-Master”);
    }
    }

    Now I need to get a script to apply the same master page to a blank page. I thought this would work:

    // This portion supposed to search and find pages with no text
    // Modified from Peter Kahrel’s script to find and delete blank pages found at
    // https://creativepro.com/topic/script-for-identifying-blank-pages-with-master-page-applied

    // This portion does not work properly as it also applies the master page to every master page and falls over
    // when trying to apply it to itself, so I need to find a way to exclude master pages.

    var myStories = app.activeDocument.stories.everyItem().getElements();
    for (i = myStories.length – 1; i >= 0; i–){
    var myTextFrames = myStories[i].textContainers;
    for (j = myTextFrames.length – 1; j >= 0; j–) {
    if (myTextFrames[j].contents == “”){
    myTextFrames[j].parentPage.appliedMaster = myDocument.masterSpreads.item(“CSt-Chapter Start”);
    }
    }
    }

    but as the comment says, it starts applying the master page to all the master pages, until it breaks when trying to apply the master page to itself. There must be some way of excluding master pages from this, but after a lot of hunting I’ve failed, thus far, to find the solution. I’m sure it’s very simple. Perhaps someone could point me in the right direction?

    in reply to: Script to apply master page based on style sheet #83227
    Digby James
    Participant

    Thanks for the information and apologies for the delay in replying. Rushing around and illness are to blame.

    I’ve tried both. Mastermatic gave me a bizarre layout at first, but then reading more carefully it worked perfectly.

    AutoFlow Pro promises to be more powerful, but I need to read up a lot more. It gave me 2044 pages from a 160 page book, so I’m clearly doing something wrong.

    But the learning curve and cost of Mastermatic is so much less I’ll be buying that.

    Many thanks.

    in reply to: Script to apply master page based on style sheet #83274
    Digby James
    Participant

    Thank you all for the helpful comments and links. I’ve been away and now ill, so please don’t think I was unappreciative.

    I’ve checked out Mastermatic and UnTools. InTools turned my 175 page document into a 2044 page one. Probably needs a more thorough reading of the manual.

    Mastermatic was more intuitive and after two attempts do exactly what I wanted. In the longer term I might invest in the InTools Publisher Suite as it offers lots of functions.

    Thanks again.

Viewing 7 posts - 1 through 7 (of 7 total)