Copying image from one document to another

Hello,
It is probably a dumb question, but Macintosh and I are like fire and water. I made an indesign document where all the barcodes of my products are stored and another document with the layout of my catalogue. I would like now to paste the first barcode picture from the first document in the first rectangle of the second document using a script.
This is what i have so far (applescript):
tell application "Adobe InDesign CS4"
     set Buffer to rectangle 1 of document "test.indd"
     select Buffer
     copy
     set selected to rectangle 1 of page 1 of document "example.indd"
     paste into selected
end tell
I'm getting the error: Invalid selection status.
Can someone help me?
Thanks

You are completely right! Got my copy of Visual Basic not in the building however.
I just came to the conclusion my questions are quite stupid... It is my first day applescript though!
Here is the solution:
tell application "Adobe InDesign CS4"
set myFrame to item 1 of rectangle 1 of document "test.indd"
set selection to item 1 of myFrame
copy
set myDocument to document "example.indd"
set active document to myDocument
set myRectangle to item 1 of rectangle 1 of myDocument
set selection to item 1 of myRectangle
paste into
end tell

Similar Messages

  • Copy an Image from one document to another

    Is there an easy way to copy a rectangle containing an image (not a link to an image) from one document to another?
    Thanks.
    Chris.

    I can now copy-paste text frames and linked graphics from one document to another using snippets, but embedded images still don't work.
    If I embed an image from a pdf file it works but not for jpeg images. When I open the new document (for which I placed the snippet) in InDesign, there is a frame (with a dark grey background and a diagonal cross) shown, but no contents. The place() method did not throw an exception. What am I doing wrong?
    Chris.

  • FW CS5: Copy Page from one document to another without changing layers

    Hi,
    how can I copy a Page from one document to another without changing the layers?
    Drag-and-drop isn´t possible and by Copy-Paste all elements are placed in the same layer.
    Greetings,
    toho

    Use File > Import.
    Open the File, then navigate to the page you want to import
    Be sure to select Insert after current page, or FW will just import the content into the current page itself.

  • How do I highlight and copy material from one document to another by using keyboard commands? The tool bar is not appearing as it typically does.

    How do I copy material from one document to the next by using keyboard commands.  I am copying from Word into and external database and the external system seems to be covering my tool bar from which I would typically click editing shortcut commands.

    Highlight what you want to copy, then command - C. To paste, select where you want it to go, then command - V.

  • Indesign CS5 crashing public.dll when copying pages from one document to another

    Hello,
    I have several Lenovo W520 (Core i7-2720, 8GB ram, Quadro 1000M) and a couple Dell M6500 (Core i7, 4GB ram, Quadro FX 2800M) all running Windows 7 Pro x64, the latest video drivers and Adobe CS5, including Indesign 7.0.4.  We have several different Indesign docs that for the purpose of interactive Table of Contents, are copying pages from one to another to end up with one master document.  On the majority of the documents, copying as few as one page to another doc crashes Indesign with the windows system error below. 
    Faulting application name: InDesign.exe, version: 7.0.4.553, time stamp: 0x4d890440
    Faulting module name: Public.dll, version: 7.0.4.553, time stamp: 0x4d8903ca
    Exception code: 0xc0000005
    Fault offset: 0x00038727
    Faulting process id: 0x18c0
    Faulting application start time: 0x01ce1f68465d45de
    Faulting application path: C:\Program Files (x86)\Adobe\Adobe InDesign CS5\InDesign.exe
    Faulting module path: C:\Program Files (x86)\Adobe\Adobe InDesign CS5\Public.dll
    Report Id: fa196aee-8b5b-11e2-9afa-a088b43f1cec
    We have tried working with the documents on different machines (both specs outlined above), and copying different pages from one doc to another in varying quantities.  The documents do not have any link errors or other references that need to be corrected. 
    Any suggestions or other things to look at?
    Thanks.

    HI. Same problem Here. i will now trying to reinstall the software. hopefully it will help me.
    What could be the cause of this error? its not in english sorry for that.
    Název protokolu:Application
    Zdroj:         Application Error
    Datum:         22.4.2013 14:09:32
    ID události:   1000
    Kategorie úlohy:(100)
    Úroveň:        Chyba
    Klíčová slova: Klasické nastavení
    Uživatel:      Není k dispozici
    Počítač:       NB-CZ-1209.cz.corp.mann-hummel.com
    Popis:
    Název chybující aplikace: InDesign.exe, verze: 7.5.3.333, časové razítko: 0x4f6b9e72
    Název chybujícího modulu: Public.dll, verze: 7.5.3.333, časové razítko: 0x4f6b9c77
    Kód výjimky: 0xc0000005
    Posun chyby: 0x000df832
    ID chybujícího procesu: 0xad4
    Čas spuštění chybující aplikace: 0x01ce3f522c7f2f21
    Cesta k chybující aplikaci: C:\Program Files\Adobe\Adobe InDesign CS5.5\InDesign.exe
    Cesta k chybujícímu modulu: C:\Program Files\Adobe\Adobe InDesign CS5.5\Public.dll
    ID zprávy: 7d476cca-ab45-11e2-b201-009c02185dea
    Kód XML události:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Application Error" />
        <EventID Qualifiers="0">1000</EventID>
        <Level>2</Level>
        <Task>100</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2013-04-22T12:09:32.000000000Z" />
        <EventRecordID>12469</EventRecordID>
        <Channel>Application</Channel>
        <Computer>NB-CZ-1209.cz.corp.mann-hummel.com</Computer>
        <Security />
      </System>
      <EventData>
        <Data>InDesign.exe</Data>
        <Data>7.5.3.333</Data>
        <Data>4f6b9e72</Data>
        <Data>Public.dll</Data>
        <Data>7.5.3.333</Data>
        <Data>4f6b9c77</Data>
        <Data>c0000005</Data>
        <Data>000df832</Data>
        <Data>ad4</Data>
        <Data>01ce3f522c7f2f21</Data>
        <Data>C:\Program Files\Adobe\Adobe InDesign CS5.5\InDesign.exe</Data>
        <Data>C:\Program Files\Adobe\Adobe InDesign CS5.5\Public.dll</Data>
        <Data>7d476cca-ab45-11e2-b201-009c02185dea</Data>
      </EventData>
    </Event>

  • OK to copy a placed image from one document to another?

    Hi all,
    I'm laying out two language versions of an illustrated book. Because they're going to be printed with the same CMY plates (with just the black plates being switched between the languages), the color images need to be in exactly the same places in both documents.
    I've found that the easiest way to do this is to first place an image in one language version and then copy it from there to the other document using "Paste in place". I just wanted to make sure that this is OK with regard to the color settings etc.
    I'm guessing that ID either uses the same import settings for the second doc as the first one, or uses the default settings. But both would be OK, because I want the default settings anyway, with no conversions.
    -oldcomp

    Have you considered using one document, with a layer for one language and a different layer for the other? But yes, you can copy between docs. Just make sure the image is available in the links manager.

  • Copying layers from one document to another problem?

    Hey there, so I have two documents of the same size (11 inches x 8.5 inches) and I am trying to copy some layers from an original document and move it to the second one. I'm doing this by just dragging the layers from the original to the new document. The problem is, the text or images are extremely smaller on the new document and if I blow them up, look really pixelated. What am I doing wrong? The original document is saved as a Photoshop PDF and I believe was made on CS4. I am currently using Photoshop CC 2014.

    Make sure the DPI/Resolution is the same for the new document as it is for the original.  Files created with 11x8.5 at 72 dpi will show up smaller on 11x8.5 at 300 dpi documents for example.  You can also right click on the layer and choose 'duplicate layer', then when the dialog open, select the name of the new document in the dropdown as the place to put the duplicate layer.  Either way, the dpi of both files should match.  Viewing the image size on the image menu can tell you the current DPI/Resolution.  Hope that helps with your problem some.  I'm not sure if the fact that the original is a PDF is causing an issue.

  • [AS IDCS3] copy frame from one document to  another doc

    Hi-
    I have a document with a text frame labeled "code". I want to copy that frame and paste it into another document.
    How do I do that?
    I am using applescript.
    Thanks, Karen

    I got the following information from Ray Robertson:
    As of CS3, you can now do this (directed at the application):
    duplicate text frame "code" of document 2 to page 1 of document 1
    Or use document names if you want. In CS2, you had to resort to using the ID
    commands for copy and paste.
    This worked great. Karen

  • Copy styles from one document to another

    Is there a way to copy styles?
    Another question:
    Can a saved document be opened and the layout changed.  For instance, to from portrait to landscape or full page to booklet?
    Trudie

    I knew it had to be something simple I was missing.  I was able to do it in Quark, so InDesign should have a way.  I can't believe I miss something so obvious (after you refreshed my mind where to look)
    Trudie

  • Copying layers from one document to another

    Hi using Cs6, locked down all the layers I didnt want to copy across, select all, copy .. new document select paste remembers layers, paste in front, all layers beautifully copied but I cant see any of them on the artboard, only in the layers panel.  There is nothing on top of the layers .. any suggestions much appreciated .. thanks

    Do a view >> outline view, do you see the elements anywhere?
    Zoom out, you may have pasted close to the edge of the pastboard
    If you had an element selected(that was inside a mask), and then did a paste in front or back, you may have nested the items inside a mask - though I doubt this is what happened since you have more than one layer.

  • Cs sdk: copying an item from one document to another

    is there a way to copy any item from one ai document to the other ?

    I'm not one for bumping old threads, but this problem is really giving me a headache...
    I'm having the same exact problem with copying groups from one document to another.  It doesn't seem to matter if it's a top-level group or not; any group that gets copied over results in the copied art not showing up in the layer list and gives errors when trying to click on it.
    If my source document looks like this:
    Layer 1
      <path 1_1>
      <path 1_2>
      Layer 2
        <path 2_1>
    If I DuplicateArt on the GetFirstArtOfLayer(Layer 1), Layer 1 gets copied into the new document, but it doesn't show up in the layer list and I get errors trying to click on any of the art.
    If I iterate over the children/siblings of Layer 1 and duplicate them all separately, <path 1_1> and <path 1_2> will show up correctly in the new layer list and are clickable, but Layer 2 will not, and clicking on <path 2_1> results in the error.
    At this point, the only solution I can think of is to recursively iterate over the source tree, manually creating the destination groups, and then copying the art work into them.
    Very frustrating!

  • How do I copy an art object from one document to another using illustrator API(C  )

    Hi, I'm trying to copy text and graphic elements from one document into another, does anybody has an idea how to do it using Illustrator SDK(C++)?
    Thanks in advance.

    If you call AIArtSuite::ReorderArt() giving the layer group handle from the target document and using art from the source document, it will move art between documents. That said, there are all sorts of caveats that come along with that -- some things move over automatically (graphic styles, symbols) while others cause problems. E.g. copying art that contains a swatch can cause a crash when you shut down the source document because it may keep the style reference to the swatch in the source document -- which goes away when the document is closed. Gradients in particular are a problem I believe. Straight up colours are (I think) fine. I've had to write a lot of workarounds for various headaches caused by moving art between documents.
    Bottom line: its very doable, but there are a lot of edge cases. This was clearly not an intended use of the SDK, though it is possible.

  • How do I reorganize my photos on iPad 2?  I need to move (not copy) photos from one album to another.  When I use the copy function to another album, and then try to delete an image from the original album, the system wants to delete the photos from all a

    How do I reorganize my photos on iPad 2?  I need to move (not copy) photos from one album to another.  When I use the copy function to another album, and then try to delete an image from the original album, the system wants to delete the photos from all albums.  Please help.

    You can't do it directly on the iPad - the new album functionality basically only allows you to copy photos into those new albums, you can't move them. The way that I think of it as working is that you are just creating pointers to the photos in those new albums, so if you then delete the original photo on the iPad you therefore automatically delete all the pointers to it.
    If you want to re-organise your albums then you will need to do it on your computer and then sync those albums over to the iPad

  • Is it possible to copy formats and styles from one document to another?

    Is it possible to copy formats and styles from one document to another?
    Or use a commen styledocument as a masterdocument?

    Only by creating a template with what you want.
    Apple has removed the ability to import styles inPAges 5 along with almost 100 other features.
    Peter

  • Copy single master page from one document to another?

    The answer to a previously posted question seems to involve creating a document differently (than I had). A lot of work went into the creation of the master pages in the original document which I will now need to recreate in the new document. Is there a way I can copy one master page from one document to another?
    Many thanks,
    Theresa

    There are a number of ways to do this.
    Create a copy of the document you want to copy the Master page from. Delete all pages except for the one you want (but you have to leave Right and Left alone as FM must always have these two pages available).
    Open the new document and the one that you want to import the master pages from.
    In the new document:
    Import from Document: (select the document with the Master Page that you want)
    then
    File > Import > Formats
    and select Page Layouts only.
    Note that Right/Left always come along for the ride.
    Alternative and probably best way to get a single Master Page:
    In new document, add a new Master Page and select "Empty".
    In the old document, on the desired Master Page, Select All on page (ctrl+A) and then copy (ctrl+v).
    In the new document on the new master page, paste (ctrl+v) to add the layout. Note: you may need to rotate the page first  if it isn't in the same orientation as in the old document.

Maybe you are looking for

  • Testar GRC QAS em Sefaz Produtivo

    Bom dia amigos, perguntarei primeiro, e depois explico a razão: Considerando que a sefaz valida o numero da nota fiscal para evitar duplicidade, se eu cancelar uma nota autorizada e gerar outra com o mesmo numero esta será rejeitada? Pois o projeto d

  • How to send Equipment for repair

    Hi, i want to send a machine or euipment for repairing.how to do it..iam having inventory and purchase,finance modules..pl provide solution regards, venkat

  • Check default user file creation mask on installing 11g RAC

    Check default user file creation mask Node Name Available Required Comment bnl11237dat02 0027 0022 failed bnl11237dat01 0022 0022 passed Result: Default user file creation mask check failed ----------------------------------------------bash_profile #

  • Where is the dry brush in the illustrator brush?

    Hi! I am a beginner of Illustrator. I am using Illustrator CS5. Thank you.

  • Iphone 4s problem with iOS 8.1.3

    So my cousin updated my grandmother's iPhone 4s to iOS 8.1.3 and it was only saying "searching."  With several hours of troubleshooting, I realized it had a 4g LTE card in it and this is a 3g phone.  So I took out the card and it will now recognize t