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

(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.

answer is correct but also we're add that the pages one attribute more as masterSpreads.
For e.g.
var myDoc = app.activeDocument;
app.importedPageAttributes.pageNumber = 1;
var myPage = myDoc.pages.item(0).appliedMaster = app.activeDocument.masterSpreads.item("B-Master"); -> Not right ¿ How would it be right?
myPage.place(File("/c/myTestDocument.indd"));
app.importedPageAttributes.pageNumber = 2;
var myPage = myDoc.pages.item(1);
myPage.place(File("/c/myTestDocument.indd"));
What would SCRIPT code right?
Thanks! and Cheers

Similar Messages

  • Indesign CS5 won't print specific pages within document

    I'm working on Indesign CS5. The issue is with a specific document, and just started happening on version 11. All previous versions of the file have printed with no problems. I have so far determined that it is a document level problem as I can print other documents in Indesign with no issues. I have also determined which pages are giving me an error message: I can print all but one spread of this 16-page document. For example, it will print pages 1-9 and 12-16, but will not print 10-11. It gives it a try, and then gives me an error message box that just reads "error: " with no code or explaination. Any one else out there experienced this or know what's going on? There's no overset text, unlinked graphics or missing fonts, if that helps. Also, I'm working on a mac.
    Edit: I have also already tried different print settings, and repasting everything into a new document that I created. 

    If that doesn't work, move the pages from spread to a new document so you can play without risking the file you have now. First, try to print the spread as-is, then if it doesn't print remove half the objects and try again. If the file prints without removing anything, then move all the pages fromthe old file to a new one and save with a new name, then try again. If you have to remove objects, there is probably a problem with one of the objects on the spread. You'll bew able to isolate it very fast by dividing the group of things that won't print in half, then dividing the half that won't print, and so on.

  • InDesign Link to specific page in a .pdf file

    I have an article index that I keep in InDesign.  Each item in the index points to a specific page in a separate .pdf file.  Is there a way, in InDesign, to create a link that will open the .pdf file to a specific page?  The InDesign file contains buttons and is exported to an interactive .pdf file.  For example, I may have an article from volume one, page two.  In the interactive index, I would like the user to be able to click on this link and open newsletter volume one and jump to page two.  I have never found a way to do this in InDesign and currently have to create the text portion of the index in InDesign, export it to an interactive .pdf file and then create all of the links directly in Acrobat Professional.  This is very time consuming because whenever I need to update the index, I need to re-export to a new interactive .pdf file and recreate ALL of the links in Acrobat.  There should be a way to do this in InDesign.

    There SHOULD be a way, yes. But there is none. It's not about Indesign, it's the PDF and handling of action like "Open file".
    I tried button actions like "Open file" in Indesign, but you only select the file name and path, nothing else.
    If you do the same in Acrobat, by putting an action "Open file" for a hyperlink, it will be the same.
    The only thing that works is to use an URL like http://www.yourdomain.com/yourfile.pdf#page=3, where #page=3 can do what you want. You could even place that URL in Indesign or Acrobat, but the PDF would a) open in a browser and b) the PDF reader will always pop up that requester before opening internet links and c) the file would have to be on the internet.
    Perhaps Acrobat Javascript could do more here, but then you'd have to embed it somehow in Acrobat (I wouldn't know if Indesign can do that) and Javascript would have to be allowed for that PDF. Not a good choice.

  • Juno and Yahoo Webmail: Firefox makes the attach file button in webmail disappear and other web browsers don't

    Using Juno and Yahoo webmail (only on this computer, not my others) the attach file button loads but then disappears when creating a new email or replying. All other web browsers allow me to attach files using these two webmail sites. This does not affect other sites like school applications to upload files for class in Firefox.

    As mentioned in the original post, the user IS the owner and the permissions are WIDE open for the user. I have also tried to disable the anti-virus - no luck. The problem is ONLY happening in Firefox. Chrome and IE work perfect. There is also no problem in Windows. The user can add/remove/edit files in the directory. Right now the solution seems to be to use Chrome. I'm not excited about that, but at this point, the only option.

  • Open attached file in the same editor(ZCRM_DNO_MONITOR customer program)

    Hi All,
    I wrote a dialog program to simplify the CRM_DNO_MONITOR.  I gave the facility to attach file from the PC(any doc  type .txt ,doc, xls. etc) by calling the functions. I need to give  a facility to open these attached file in the same edit. Please let us know way
    Additionally,I can find the logical and physical document of these attached files
    e. g
    (Doc class       : CRM_L_ORD
    Doccument   : 4CA517D70BE60F7FE1000000AC113F3F
    Doc Class       CRM_P_ORD
    Document        4CA517D80BE60F7FE1000000AC113F3F)
    Attached files successfully by calling the following functions
           objkey = wa_tab-guid .    " (crmd_orderadm_h-guid)
           objtype = 'BUS2000116'.
          CALL FUNCTION 'SO_FOLDER_ROOT_ID_GET
          CALL FUNCTION 'SO_DOCUMENT_REPOSITORY_MANAGER
         CALL FUNCTION 'BINARY_RELATION_CREATE_COMMIT'
         CALL FUNCTION 'CRM_KW_MIGRATE_GOS' DESTINATION 'NONE'

    Hello ,
    i think you can make use of Clase CL_GOS_MANAGER
    check Sap program which are using this clasee.
    try yourself and let me know if you have any doubts.
    regards
    Prabhu

  • ICal attached file gone wrong

    I use file attachements a good bit in iCal, but recently, when I go to view them I get this:
    http://emberapp.com/radmacdaddy/images/screen-shot-2010-02-22-at-11-36-49-am
    Seems the links are messed up. What might correct this other than having to rebuild the whole series of calendars.

    Originally Posted by imc
    Hello,
    At one of our Schools, a teacher is teaching the students how to attach files to an email. They are using webaccess. As part of the process, he has them click on the attached file to confirm they have attached the proper document. From time to time, the document viewer seems to be pulling up the wrong file. When the email is sent, the attached file is correct.
    It seems to me that the document viewer isn't pulling the correct attachment and is referencing some other previously attached file. Is there any piece of the document viewer where cached files are stored on the local machine? If not, any thoughts about what could be causing this?
    Here's the version info of Webaccess:
    Build Number: 100584
    Program Release: 12.0.0 4/16/2012
    This happens on a Windows 7 machine running IE8.
    Thank you,
    -Ian
    I believe this issue is solved in 2012SP1: NOVELL: Downloads - Groupwise 2012 Support Pack 1 - Linux Full English & Multi
    Bug: 759568 User sees some random attachments when composing a new mail
    Thomas

  • How can i view a attached file in OAF pages which has been attached

    Dear all,
    Hope you are well.
    i have a table region from that i have attached a file named"file1.text" against a primary key.
    now i want to view that attached file in a oaf page.
    how can i view that attachment.
    would you please explain

    Hi again,
    Personalize that table
    1-Add Attachment Image column
    2-Set the *View Instance (ViewObject that feeds table)
    3-Add Entity under the Attachment image
    4-Set *Entity as same with your entity value
    5-Insert Allowed =>false, Update Allowed => false Show All => true
    6-Add a primary key under the Entity
    7-Set View Attribute with your primary key column like PersonId
    Thanks.
    Anil

  • How to I get multipage pdf file placed in my document to conform to the document that I set up?  I have InDesign cc and the pdf pages are placed outside of my document?

    How to I get multipage pdf file placed in my document to conform to the document that I set up?  I have InDesign cc and the pdf pages are placed outside of my document?

    Hi Rave,
    InDesign cc couldn't open the script, I get an error message that it is not a supported file type.  I tried this first before using the "place multipage pdf" in my InDesign document.  The script which comes with InDesign cc works, but places the pages outside of the document.  That's what I'm trying to figure out how to do.  I had no trouble doing this in PageMaker 15 years ago.  I don't know why it doesn't work on my computer??
    Thanks,
    Yerbamansa

  • Can snippets made in InDesign CS5 be placed in a CS4 document?

    Can snippets made in InDesign CS5 be placed in a CS4 document?

    Well, that is interesting, but I’m going to guess that the snippets are just a form of IDML so if that’s the case I guess it would make sense.
    Bob

  • InDesign CS3 placed inside another InDesign CS3

    I have an InDesign file placed inside another and one of the picture doesn't print or export properly.
    It's not the first time it's happened, nut usually the problem seems to occur with a complex PSD file placed in the 1st document.
    This time the file is simple, but it's in multiply mode in the 1st InDesign document.
    Any idea how to fix this?

    I just tried to reproduce the image problem with PSD in ID in ID to show you screenshots but now everything seems to be working correctly (I had some files from last month that were causing a problem but now they're not). I'll just have to wait for it to happen again.
    As for the place ID into ID causing a crash, I figured this isn't a widespread quirk, but several others in my office have this issue, although one colleague does not. We're all using the same workflow, the same hardware/software/fonts (OS 10.5.8; CS3 5.0.4), etc.
    ID crashes the first time I place an ID file into an ID file, whether by file>place or drag-and-drop. Doesn't matter if the files are local or on a server. It also happens when the placed ID file has changes that causes the "container file" to be updated (the relinking causes the crash). If I quit ID before doing any of these operations, so that the place/relink is one of the first operations that I do, then the program doesn't crash. If I've been working for a little while then place/relink, that's when I get the crash.
    Any thoughts?

  • Acrobat 5 - Placing PDF into inDesign and Output to Colour Separations are Wrong

    Acrobat 5 - Placing PDF into inDesign and Output to Colour Separations are Wrong
    I have a 2 Page PDF file from my client which I have to have setup 2UP on 450x320 for Metal Plates for the Press.
    I setup my page size in inDesign and Placed each page from the PDF file into the inDesign Document.
    Because I need 4 Metal plates (CMYK) I had to check the Colour Seperations for the file by outputting it to a Postscript file with CMYK SEPS and then using Adobe Distiller to turn it into a PDF file for me to view the Seperations.
    As I've shown in the screen shot below. The CYAN plate has boxes all around the images in the PDF file which will come out on a Metal Plate.
    Compared to the Colour version of the Client's PDF they supplied me, there is no boxes around the images.
    I know this is a error with dropping a PDF file into inDesign, outputting to a PS file and then Distilling it to the SEPS. I've had the same problem when I've opened a PDF file that has been distilled in Illustrator and the Artwork is sliced into pieces and uneditable.
    Has anyone else found this problem and if so is there a workaround?
    I'm using Adobe inDesign CS and Adobe Acrobat Professional Version 5.

    Im facing a similar kind of problem. I want to store and retrieve Office files, PDF and Jpegs into/from the database to view them on web in disconnected mode. Please reply as I cant find any help/documentation regarding saving BLOB data into files. I was able to store file data into BLOB, using DBMS_LOB package.
    Shahzad

  • Is there a way to find and replace prices in an Indesign document from a CSV file?

    Is there a way to find and replace prices in an Indesign document from a CSV file. Currenty I have a catalog with codes and prices in tables. I need to find a way to look up the code (and new price) in the CSV file and overwrite the price in the current table with the new price. Does anyone know of a script to run this quickly?

    Hi,
    Try this
    1) with all the images showing, got to Find -> By caption or Note
    2) enter the caption you are looking for Image Description and click on OK
    It should display all the ones with that caption
    3) select a few images as a test
    4) go to Edit -> Add caption to selected items
    5) if you want to blank out the captions just check the box to replace the caption and click on ok
    6) You will need to confirm the blank captions
    You could use a similar procedure to change the caption to something else.
    Good luck
    Brian

  • How can I always have  "enable all documents" selected when opening files in Indesign CS6?

    Every time I open a file in CS6, I still have to select "open all documents" to see my files that have already been converted to CS6. Before, once a file was converted to the newer version of indesign, you would see it in the menu automatically when open "readable documents" was selected. Now when I go to find a file that I've already converted to CS6, it still makes me select "open all documents" because it doesn't show up as a "readable document"
    hope this makes sense.
    i'm running osx 10.6.8, mac pro

    if it has a .indd, .indt, .inx or .idml extension ist should show up as readable, regardless of the version. If it's not you have a bigger problem.
    Start by trashing your prefs. See Replace Your Preferences

  • Flash video game. How to make it playable & put onto website, and Indesign PDF file?

    I am making a video game using Adobe Flash 2.0. I need to be able to show what I have through a website (my portfolio) and/or insert it into an interactive Indesign PDF file. The game needs to be able to be played and be used and tested by whoever I send the pdf file to, or whoever is would be view my the site I post it on. I have attempted many different ways to put my game onto my website (cargocollective) and Indesign, but nothing is working! I need help.
    For example I need my game to be placed on the website page, and on the pdf document as an image. When it is clicked on I need it to start so people can play the game. I don't know how to do this and I would really love and need to know how! Thanks.

    You are more likely to get a helpful reply if you ask this in the Flash forum (this is the Flash Player forum).

  • How to put Flash video game onto inDesign PDF file and Website page or link?!

    I am making a video game using Adobe Flash 2.0. I need to be able to show what I have through a website (my portfolio) and/or insert it into an interactive Indesign PDF file. The game needs to be able to be played and be used and tested by whoever I send the pdf file to, or whoever is would be view my the site I post it on. I have attempted many different ways to put my game onto my website (cargocollective) and Indesign, but nothing is working! I need help.
    For example I need my game to be placed on the website page, and on the pdf document as an image. When it is clicked on I need it to start so people can play the game. I don't know how to do this and I would really love and need to know how! Thanks.

    Flash should be able to publish an html page which will provide the web page code needed for embedding the swf.  The page it publishes should be sufficient for planting on a server unless you plan to dress it up with other content as well.
    As far as incorporating Flash content into a PDF using InDesign goes, you are best to ask questions about using InDesign in the InDesign forum.  Here is a link to the Overview page whee you can pick which forum applies best to your situation:
    InDesign

Maybe you are looking for

  • Can I restore my applications and data from a ML time machine back up to a machine running Lion?

    Because of the horrible battery life with Mountain Lion (10.8.2), I am looking to downgrade to Lion. I have a Time Machine backup of my current machine, running ML. I do not want to restore all the way back to my last Lion backup, because that was a

  • Failed to Establish Connection with SQL Database Server (EAS)

    Hi, We have recently installed version 11.1.2.1 of essbase. Everything is working just peachy. One of my users tried to build a load rule using an Oracle ODBC data connection and gets the error: Failed to Establish Connection with SQL Database Server

  • Font won't display -- strange behaviour

    Hi all, I have a keynote presentation that I prepared last year, and it worked fine. I went to open it today, and the font does not render properly -- all the letters are compacted together and not legible. If I change the font size, I can read it ag

  • My responce to Apple's request to try Photos as an Aperture user

    From what I've seen and read from reviewers regarding the new Photos App, I currently have no interest. Maybe that will change but I am totally dismayed you would completely give up on the professional market and thoroughly dismantle a truly name bra

  • When to use the -clusterable extra rmic option?

              Hi,           We are trying to do a clustered deployment on the WLS 701. I am trying to figure           out all the things that need to be on for clustering to work successfully. Currently           I am focused on the EJBs. Here is what I