Skip navigation
Currently Being Moderated

Placed in an InDesign document other InDesign attached file on a specific page

Jun 5, 2012 12:20 AM

(inserted into another file indesign indesign on a specific page)

 

Hey all !

 

 

I'm trying using Script:

 

1. in a document already open indesign:

var myDoc = app.activeDocument;

 

2. place another file. indd 

app.open(File("/c/myTestDocument.indd")); ----> code and not well



 

3. also be inserted in a specific page, (eg on page 12 of my active.Document or any other page)

var addPages = 2;
// Page number 2 is item(1), since page number 1 is item(0):
var addAfter = app.activeDocument.pages.item(2);

 

 

 

 

to see if I can give Script code to get the result.

 

 

thank you very much hope to answer please.

Raul.


 
Replies
  • Currently Being Moderated
    Jun 5, 2012 10:17 AM   in reply to Raul_rubi

    For starters to place a file you would use app.place, not app.open.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 13, 2012 1:20 AM   in reply to Raul_rubi

    Hello Raul,

     

    I have just manged this with:

     

    var myDoc = app.activeDocument;

    var myPage = myDoc.pages.item(0);

    myPage.place(File("/c/myTestDocument.indd"));

     

    Looks like you need to use "place" for a page.

     

    Cheers,

    David

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 13, 2012 10:31 PM   in reply to David Adam Gibson

    Hi,

         placing other indesign files into active document is not possible... eventhough if palcing then will lose the xml structure.

     

             

    "One wrapper should contain only one knife"

     

     

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 13, 2012 11:10 PM   in reply to Cenchen

    EyenanC:

     

    Not true. InDesign supports placed InDesign documents.

     

    myPage.place(myDocToPlace);

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 13, 2012 11:13 PM   in reply to Harbs.

    Could you show the screenshot?

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 13, 2012 11:27 PM   in reply to Cenchen

    I don't know what you mean.

     

    Try placing an InDesign document and you will see it works. It's the same as any othr linked file (such as Photoshop, Illustrator, etc.).

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 13, 2012 11:33 PM   in reply to Harbs.

    Its placed in a wrong manner and also can't able to edit. Can you provide the screenshot pls...

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 14, 2012 3:54 AM   in reply to Cenchen

    What do you mean "wrong"? What are you expecting?

     

    I don't see that a screenshot will help...

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 18, 2012 8:23 AM   in reply to Raul_rubi

    This one's a bit weird:

     

    var myDoc = app.activeDocument;
    app.importedPageAttributes.pageNumber = 1;
    var myPage = myDoc.pages.item(0);
    myPage.place(File("/c/myTestDocument.indd"));
    app.importedPageAttributes.pageNumber = 2;
    var myPage = myDoc.pages.item(1);
    myPage.place(File("/c/myTestDocument.indd"));
    

     

    Harbs

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points