[JS CS6] paste onto active document from external .indd

Hey everyone, i'm at a complete loss with this, tried loads of examples from this forum etc and cant get anywhere so i've given up!
All i'm trying to acheive is to prompt the user for a code, then that refrences an indesign file in a folder, this is all working ok, we have a variable called BMDFile with a full file path ready to go, but I can't figure out how to get this file on a currently open document in an editable format.
I just want it to paste from an indesign file onto this empty doc
I'm trying to edit this example from the forum now...
var doc1 = app.documents[1]; //  needs to be from an external .indd file (variable BMDFile already contains a full path)
var doc2 = app.documents[0];  // paste to
for(i=0; i<doc1.pages.length; i++)
    if(doc2.pages.length < i+1){
        doc2.pages.add();
    doc1.pages[i].pageItems.everyItem().duplicate(doc2.pages[i]);
Thanks in advance!

Unfortuately the Workflow setup here (that I cant change is)
Designer accepts a job for a customers ad with other software we use, it creates a blank indesign template with the correct name in the correct place with correct colour settings etc
It opens that blank document in InDesign and the designer makes the ad
Designer ends the job by using a script here (which I cant change) to Save (on top) & generate a PDF to specific settings
So unfortunately the 'current empty document' I'm looking to paste this external stuff onto, is a file that could be in various different folders and names, i can't see an easy way to script it.
I just wanted to script:
Designer has the automatic blank template up, sees its a repetative ad
Designer presses F4 (or similar for this script) types a code number
Script pastes the almost fully made ad on the template for them
If indesign cant do this, i'm probably better off scripting windows to find out where these files are saves and copy a pre-saved template into the relevant folder with the new name (if i can find out how its generated) and then open that.  But this means the designer would be shutting down a blank template, running a script then opening it, not very intuative.  I was thinking of a library but only one user can work on it at a time, so not ideal.  Placing a Snippet DOES work, leaving editable objects, but to update a snippet seems to be a lot of unnecessary clicks if it could just remain an .indd that anyone could go in and update as necessary
Before you think it, don't worry, i agree this companies workflow is akward at best, i'm just trying to save daily repetitive clicks, file browsing and copy & pasting for pretty simple templates.

Similar Messages

  • Documents from external system

    Hi experts.
    I would like to aks You how can I solve following problem:
    1. I have an aplication in ABAP
    2. There is an external aplication for optical archive of documents
    3. We are ucing JaCo to communicate with external aplication.
    And, main problem is, that I need to view scanned document from external aplication in our SAP aplication.
    I have two ideas:
    1. through HTML viewer - I will get an URL addres of HTML code of the scanned document - but, there is an problem with rights. To view this URL i need this url has to be a public (user's browser must "see" it). but, this is not possible to public this url, because there are scanned agreements. And, when this url is private only for SAP server and external application, the HTML viewer cannot find it ..... I have thinking about using username and password in HTML code and url addres, but, that is not what I prefer ...
    2. through PDF - the external application create an PDF document on their directory. But, how can I view this PDF in SAP (from external directory in other system).
    Many many thans for any answer.
    Have a nice day .....

    Hi,
    From your description, you want to get numerous files into SharePoint Document Libraries.
    After you log on to the SharePoint document library->click Actions->followed by
    Open with Windows Explorer. After Windows Explorer opens, you can upload and download files and folders using the standard copy-and-paste operation.
    Refer to the article:
    http://windowsitpro.com/systems-management/easy-way-get-numerous-files-and-out-sharepoint-document-libraries
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Constructing a new Document from External Nodes

    Constructing a new Document from External Nodes
    I have a situation where:
    1.     I have an existing XML Document
    2.     I need to parse for specific Nodes under varying conditions
    3.     Once the Node is identified -- I would like to append this node as a new Node in a new Document
    Is this possible? The methods in the API do not lend themselves to attaching a Node that was not explicitly created by the target Document.

    Hummm�
    That works, sort of; it does allow the node to be imported, but at the Document level only. I will need to apply this at various Node (Element) points, which the API does not permit.
    Thanks for the info.

  • How to send delivery document from external system to ECC

    i have a business requirement to send a delivery and billing documents from external system ( MS access )  to ECC
    could any one light me how to do this ???
    Thank you in advance

    Hi Ahmed,
    Talk to your middleware team, They will upload the data through RFC.
    Basiclly RFC(Remote function call) works like it will call the function module and then upload the data.
    For more information, check the link given below.
    http://help.sap.com/saphelp_nw04/helpdata/en/6f/1bd5b6a85b11d6b28500508b5d5211/content.htm
    Hope this helps,
    Regards,
    MT

  • How can I copy and paste a pdf file from my picture file and paste onto a document?

    How can i copy and paste a pdf file onto a document.  I am trying to place and article onto my
    Reverbnation Press page.  They only give you the option to either place a url link or paste a document.  There
    is no uploading for the Press page.  thanks, elena

    The Digital Editions forum is here, in case this is what you are talking about:
    http://forums.adobe.com/community/adobe_digital_editions
    If you are not, I apologize for the misunderstanding.

  • Migrate word documents from external system to SharePoint 2007 site

    Hi All,
    I have a requirement wherein I have to migrate around 2500 word documents from one of the system to SharePoint system.
    Please note that my client is using MOSS version of SharePoint.
    Also some excel files are embedded in to some of the word documents.
    Those word documents are stored in different system (other than SharePoint).  I have to migrate them into my MOSS system.
    Is it possible OOB. I suppose doing it manually will consume a lot of time and client wants it do be done in minimum time.
    Is there any tool readily available or do I have to develop one in visual studio 2005? If yes could some one please share the code as I do not know how to proceed on this.
    Your help is highly appreciated.
    Please respond. Let me know if you need more info.
    Thanks & regards,
    Manish

    Hi,
    From your description, you want to get numerous files into SharePoint Document Libraries.
    After you log on to the SharePoint document library->click Actions->followed by
    Open with Windows Explorer. After Windows Explorer opens, you can upload and download files and folders using the standard copy-and-paste operation.
    Refer to the article:
    http://windowsitpro.com/systems-management/easy-way-get-numerous-files-and-out-sharepoint-document-libraries
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Printing scanned documents from external system

    Hi All
    Is there any function module available in SAP which can print the scanned document available in external system.
    My requirement is :
    They will maintain a reference number of the scanned document in Material master.
    so when ever they print the' route sheet' we have to pick the scanned document from the external system based on the reference number and print along with the
    ' route sheet'.
    Thanks & Regards,
    Kishore

    Hi John,
    Could you please let me know the function modules .
    Right know am using cv120_start_application ,But with this function module I am unable to print the images (Not able to print JPG,BMP and PDF documents)
    My requirement is SNP format document will be attached in material master.
    Thanks in advance.
    Regards,
    Kishore

  • Park The Document from external system

    hi experts,
    is there any way to park the documents from the external system.
    i.e Idoc,Bapi .....
    thanks&regads,
    srinivas.

    HI,
    I would like to suggest the following BAPIs:
    1) BAPI_INCOMINGINVOICE_PARK (parking invoice document)
    2) BAPI_INCOMINGINVOICE_CHANGE (changing a parked document),
    3) BAPI_INCOMINGINVOICE_POST (posting a parked document) and
    4) BAPI_PARKEDINVOICE_DELETE (deleting a parked document).
    Please refer to documentation of these function modules.
    Regards
    ravinagh Boni

  • Open business activity document from link

    Hi;
    I want to open a certain business activity document  directly from a link in outlook.
    I have all the attributes of the activity document,
    But I don't know how to generate link .
    I can search all activity and select my document .I have object attributes of the document but I can't generate link to use these attributes.
    How can I do
    Thanks.

    Hi,
    Please take a look at the following two threads which might be of help to you:
    http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=50148
    http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=51517
    Cheers
    Girish

  • Adobe Acrobat CS6 won't create documents from my scanner

    I am using Windows Vista 64-bit based Adobe Acrobat software from my CS 6 Creative Suite.
    I can view pdf documents using Acrobat CS6 Pro but I cannot seem to create a pdf from my scanner as I have in the past with older Acrobat versions.
    The scanned document appears and then Acrobat shuts down without any reccommendations.
    Do I need to uninstall and reinstall? Is there a patch available?

    You can follow the troubleshooting steps mentioned in the knowledge base document : http://helpx.adobe.com/acrobat/kb/troubleshoot-scanner-issues-acrobat.html

  • How can I transfer my files and documents from external hard drive to my new MacBook Air?

    I recently bought a new MacBook Air and I would like to transfer my files and documents which I already saved in my external hard drive to this new mac. Unfortunately, I have not been able to do it so far. I tried to drag some files but the rest of the documents cant be transferred.
    I appreciate it if anyone could help me in thsi regard.

    Describe exactly what you did when it failed and the error message you received that told you it failed. Dragging and dropping files from one drive to another will work. Having said that  however, you need to be aware that trying to copy items with the same name will result in a warning dialog box offering several different options including canceling.
    To better help you it would also be helpful to know about the external drive. Did you use TimeMachine to back up to that external drive? Did you copy files from another computer to the drive?

  • DMS BAPI RFC Open DMS document from external application

    Hello,
    I want open a document stored in DMS through RFC BAPI, from an external application (for example .NET)
    EasyDNS run OK: I have included the bapi Z_EASYDMS_ECL_OPEN_DOCUMENT (code from a SAP note)  in the system and I can open ECL/EAI & local documents (pdf, word, ...)
    If I run Z_EASYDMS_ECL_OPEN_DOCUMENT from SE37 run OK: I can see every document, document is downloaded to local system and then open.
    But when I call bapi Z_EASYDMS_ECL_OPEN_DOCUMENT from my external application through RFC I don't receive any result: document is not download to local system.
    I have debugged the bapi (with SM50) and I have see that the calling entry in bapi, run and then ... crash.
    I have detected the fail in OLE_FLUSH_CALL: system has a dump.
    Summary:
    - EasyDMS run Ok
    - SE37 Z_EASYDMS_ECL_OPEN_DOCUMENT run ok
    - Z_EASYDMS_ECL_OPEN_DOCUMENT dump at OLE_FLUSH_CALL
    Any idea?
    thanks in advance,

    Hello,
    it is possible to extract DMS's file to application server directory:
    FUNCTION Z_DMS_VIEW.
    ""Interfase local
    *"  IMPORTING
    *"     VALUE(DOC_NUMBER) LIKE  BAPI_DOC_DRAW2-DOCUMENTNUMBER OPTIONAL
    *"     VALUE(DOC_PART) LIKE  BAPI_DOC_DRAW2-DOCUMENTPART OPTIONAL
    *"     VALUE(DOC_TYPE) LIKE  BAPI_DOC_DRAW2-DOCUMENTTYPE OPTIONAL
    *"     VALUE(DOC_VERS) LIKE  BAPI_DOC_DRAW2-DOCUMENTVERSION OPTIONAL
    *"     VALUE(ORIGINAL_PATH) LIKE  BAPI_DOC_AUX-FILENAME OPTIONAL
    *"  EXPORTING
    *"     VALUE(P_RETURN) LIKE  BAPIRET2 STRUCTURE  BAPIRET2
    *"  TABLES
    *"      DOC_FILES STRUCTURE  BAPI_DOC_FILES2 OPTIONAL
      CLEAR:   doc_files.
      REFRESH: doc_files.
      DATA: i_doc_files like bapi_doc_files2.
    DATA: i  type i.
    i = 2.
    while i = 2.
       i = 2.
    endwhile.
      CALL FUNCTION 'BAPI_DOCUMENT_CHECKOUTVIEW2'
        EXPORTING
          DOCUMENTTYPE    = DOC_TYPE
          DOCUMENTNUMBER  = DOC_NUMBER
          DOCUMENTPART    = DOC_PART
          DOCUMENTVERSION = DOC_VERS
          DOCUMENTFILE    = i_doc_files
          GETSTRUCTURE    = '0'
          GETCOMPONENTS   = 'X'
          ORIGINALPATH    = ORIGINAL_PATH
          HOSTNAME        = ' '
          GETHEADER       = 'X'
          PF_HTTP_DEST    = 'SAPHTTPA'
          PF_FTP_DEST     = 'SAPFTPA'
        IMPORTING
          RETURN          = P_RETURN
        TABLES
          DOCUMENTFILES   = DOC_FILES.
    ENDFUNCTION.
    ORIGINAL_PATH must be a directory of application server.
    By background is not possible (I don't know how can we do that) download thsi file to PC.
    Then with the file in application server we can :
    - to map application server directory in a drive unit of Pc
    - to transfer with a ftp client from Pc
    - rfcexec
    But always the bapi can not download the file: it must be a process in Pc who transfer the file.

  • How to display document from external archive via archivelink?

    Hi,
    I would like to display in SAP (via ArchiveLink) scanned document which was stored in an external archive (FileNet). The archive system is connected to SAP via ArchiveLink. However the scanned document isn't stored in the archive system via SAP so I don't know the ARCHIV_DOC_ID. I only know OBJECT_ID as far as the metadata of document is considered.
    I tried to use ARCHIVOBJECT_DISPLAY function module with object_id and arvchiv_id but I get the message no. OA512 (Parameter info was not transferred for command docId). I can only display scanned document entering the right value of ARCHIV_DOC_ID parameter. But actually I don't know the value of this parameter from the level of SAP system.
    Could anybody give me some clue or hints?
    Best regards,
    Zacaria

    Hi
    Just as Fred written SAP needs to be linked to external archiving system by a Contenent Repository (transaction OAC0).
    The menu for ArchivLink setting is in customazing:
    Was it done that?
    Max

  • How to copy paste a office document from one folder to another using J2SE

    HI!
    How can i copy a document file(.rtf,.docx.pdf) from one folder to another folder by executing Java code?
    Help needed

    Hi! You can use my api com.gmail.ronilloang.util.FileUtil for copying files. You can download it at my homepage [RA (TM) i-Software|http://ang.ronillo.estares.googlepages.com/]

  • HT1449 how do i import iTunes from external hard drive

    I had itunes on our old PC. We moved iTunes to an external Harddrive and replaced our PC with a iMac. I would like to move my iTunes back onto the computer from external HD.  I followed some instructions posted but nothing happened.  I think I am missing something.

    Try Here...
    Move iTunes Library from PC to MAC
    http://www.macworld.com/article/146958/2010/03/move_itunes_windows_mac.html

Maybe you are looking for

  • Squid doesn't accept https requests

    I have a server running Arch i686 and installed squid as a web proxy server. I can connect to it through, say Firefox, and it serves all the pages except SSL'ed ones. It simply throws a generic Firefox error. What do I need to enable in my squid.conf

  • Setting up 3rd monitor on H50-50

    When I Install a GeForce 210 graphics card, I get video only on the monitor connected to it.  Tried IGD, PEG and auto video options.   Another oddity: I can't access the setup utility via F1 with the card installed.  Is the BIOS defective? How can I

  • Can we move SAP R/3 standard Function Groups, SAP Tables to BW

    Dear Forum, We are in a ‘pilot’ process of migrating SAP R/3 Custom development objects to our BW client and we have a few questions that we would like to know if possible. We are currently in the ‘To Be’ Blueprint Phase of migrating SAP 45B to ERP20

  • Custom1, creation date in PDF

    Hi I have a verity collection that I want to order by creation date, now I know I need to make use of a custom field in verity to do this, how do I customise the style.sfl file to allow for creation date, this is really testing me and I am sure it is

  • Unable to+decode+or+import+selected+audio

    Looking for a solution.  I am running windows 7, adobe captivate 4.  I have attempted to convert text to speech, I get the error unable to+decode+or+import+selected+audio.  I have gone to the supplied library same error.  I have taken a mp3, changed