Back

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

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Script to duplicate page/spread after current #14324058

    Fixed it

    in reply to: Script to duplicate page/spread after current #14324059

    To get this topic alive again, I’ve tried the script:

    // Define variables
    var file = app.activeDocument;
    var pages = file.pages;
    var numberOfPages = pages.length;

    // Duplicate each page
    for (i = 0; i < numberOfPages; i++) {
    file.pages[i].duplicate();
    }

    // Intertwine pages
    for (var i = 0; i < (numberOfPages – 1); i++) {
    var currentPage = (numberOfPages + i);
    var insertPoint = (i + i);

    file.pages[currentPage].move(LocationOptions.AFTER, file.pages[insertPoint]);
    }

    The only problem is that I get an syntax error

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