Activating More Than One InDesign Document

I need some assistance in AppleScript for InDesign CS2.
I need to copy text from one InDesign CS2 document to another InDesign CS2 document. I already know the AppleScript commands to copy and paste the text.
But what I am getting stuck is the command to activate the second document. After I copy the item from document 1, I need to paste it in document 2. But I don't know the command to activate the other document. I was hoping a simple command like:
"activate lower document" or
"activate other document" or
"activate second document" or
"activate document 'Untitled-2'...
would work, but all of the above give me errors or do not work.
Any suggestions will be appreciated.

You have a list of documents but there is only the one active document. So just loop thru the others setting them to the active one in turn…
Something like:
tell application "Adobe InDesign CS2"
tell the active document
-- do your copy stuff here…
display dialog (name as text) giving up after 2
end tell
repeat with i from 2 to count of documents
set the active document to document i
tell the active document
--do your paste stuff here…
display dialog (name as text) giving up after 2
end tell
end repeat
end tell

Similar Messages

  • App switching on Mac with more than one InDesign window open

    I wonder if this happens to everyone or if it's something with my set-up--to be precise, having Spaces active.
    In OS 10.6.8, if I have more than one InDesign document open and I switch to another application using command-tab, when I switch back to InDesign I (often) see the content of the inactive document, even though the name tab of the original, active document is highlighted.
    The only way to get back to work is to click the title tab of the (supposedly) active document, or use the command-tilde shortcut, or reselect the active document name from the Window menu.
    This drives me crazy as I need to check a lot of things via a browser as I'm editing. It forces me to make sure I don't have 2 ID windows open.
    I'm pretty sure the same kind of thing happens in Word.

    I thought I'd follow my last post up with an update. I recently upgraded to InDesign CS6 and was hoping that the problem would be solved. Unfortunately, that isn't the case. However, I did find a fix that is working for me. I noticed that when I turned the Application Frame on (found under the Windows menu) that the problem went away. I'm getting used to working this way now. I have 16 Spaces which I routinely bounce around between. And now, every time I go to InDesign it works properly!

  • How do I merge more than one PDF document into one singular pdf using adobe viewer touch on a microsoft surface?

    How do I merge more than one PDF document into one singular pdf using adobe viewer touch on a microsoft surface?

    Or using the Adobe PDF Pack https://www.acrobat.com/

  • Can I open more than one Pages document at a time with the IOS app?

    This sounds crazy, but I can't find how to open more than one Pages document at the same time when using the Pages app on IOS.
    It's easy on the Mac, but on my iPad? Can't seem to do it!
    I'm working on a project where I'm writing one document, but having to frequently cross-refer to another. Having to continually open and close each document, one at a time, on my iPad is driving me mad!
    Am I missing something really obvious? Can anyone help please?

    Many thanks, that's really useful. I've saved the document I'm referring to as a PDF and can now work exactly as you described.
    As you say, it's not elegant, but it does work
    Just need to ensure my fingertips are very dry, as I fear any slight 'catching' with a four finger swipe and my iPad will fly across the room / train / office 

  • Taking ref. more than one billing documents during creating sales order

    Hi everybody,
    During creating sales order with reference, how can i take reference more than one billing documents?
    Thanks.
    Best regards.
    Kaan Özdöker
    Astron

    Hi all,
    Thanks for the helpful answers. I realized after your answers, my question was misunderstood.
    Ok, i can refer to billing documents one by one in the sales order creating screen i know, but i want to refer to many billing documents at once.
    In this mean, Srinath'a answer was very helpful. As i thought there is no other way except user-exit modification or new routine.
    Thank you all.
    Best regards.
    Kaan Ozdoker
    Astron

  • Can't open more than one InDesign file at a time.

    InDesign CS6
    Sometimes, when I try to open a second or third InDesign file I get this message:
    [Cannot open "file-name.indd" please close one or more Adobe InDesign documents or books or libraries and try again]
    If I close all open files, it lets me open one file.
    If I quit, and restart Id, I can open more than one file for a while, then it starts to show this error message again.
    Interestingly, it was doing this same behavior in Id CS 5.5.
    I was hoping that upgrading to CS6 would cure it of this.
    Any ideas?
    iMac i7 27"
    8 GB RAM
    OSX 10.8.1

    As a general comment, most users don't have a problem opening multiple files, so this is probably something local on all of your systems (though not necessarilty the same thing).
    Standard things to try for troubleshooting are removing all third-party plugins, including any font manager auto-activation, creating a new user account and try that, trash your prefs (see Replace Your Preferences) and start your machine with background programs disabled.

  • Activating more than one iphone

    How many iphones can you activate on itunes. If you can activate more than one, will the songs and applications you download into itunes be able to be put on more than one phone or just one.

    I don't believe there is a limit for the number of iPhones that can be activated with iTunes on a single computer, and I don't believe there is a limit for the number of iPods and/or iPhones that can be synced with the same iTunes library.
    There is a 5 computer limit for the number of computers that can be authorized with the same iTunes account, but not for the number of iPods and/or iPhone that can be synced with the same iTunes library.

  • Can i take the printout for more than one billing document in SD at a time

    HI ALL,
    The issue is '' i want to take the print out for more than one SD - billing document at a time.
    is there any config settings to be done.
    please guide me if u have the solution ASAP.
    Regards,
    SOMU.

    Yes, it is possible. However you may have to enable a field NAST-ANZAL. This field is available in VV31 when you are maintaining the output records. The field Number of Messages can be filled with the numberof copies youwant.
    However, I think you have to read this in your custom program to trigger n number of copies. If that is done, you can take the printouts as many times as you want in a single trigger.
    The code approx looks like this
    IF nast-anzal EQ 0.
        nast_anzal = 1.
      ELSE.
        nast_anzal = nast-anzal.
      ENDIF.
      nast-anzal = 1.
      nast-dsnam = nast-kschl.
      nast-dsuf2 = vbdkr-vbeln.
      DO nast_anzal TIMES
    If you show this field and talk to your developer, he should be able to help you.
    Hope this helps.

  • How to attach more than one word document to an email?

    Hi there. 
    I've recently acquired an Ipad which I want to use while I'm out and about.  I generally respond to emails with attachments.  How do i go about doing this on the Ipad?  I've got a gmail address and making use of the gmail app to send and receive emails. 
    I would also like to be able to attach more than one attachment from the app pages.   Is there an app available which will allow me to do this?

    You can't do that from Pages or from the built in mail app. Look at this. I think it allows multiple attachments.
    http://www.redbits.com/iphone/groupemail/en/index.html

  • How to display more than one PDF-Document

    Can anyone tell me how i can show more that one pdf-form without having to use the container-window in the sdk-example. i would like to open and show a number of pdf-documents and react e.g. when a form closes.

    I don't have an answer, but it may help if you post more imformation
    about your problem. What API are you using (e.g. OLE, plug-in,
    JavaScript)? What language are you writing in? What is the name of the
    example you are looking at?
    Aandi Inston

  • How to show more than one PDF-Documents

    One more question to the gurus. Can anyone tell me how i can show more that one pdf-form without having to use the container-window in the sdk-example. i would like to open and show a number of pdf-documents and react e.g. when a form closes.

    "Which option is the third one? You mean "Or, make an application with
    one AcroPDF box in one form. Save it as an EXE (or whatever). You can
    now run multiple copies of your application".
    If this isn't clear, I'm not sure how to make it more clear, but I can
    try.
    Do you turn your application into an EXE today? Ok, then just start 3
    copies. Don't you have three PDF viewers?
    Aandi Inston"
    i still do not understand... let me try to explain the application a little bit. i am developing an add-in for outlook. the user can open a main-form with a lot of information on it and e.g. a button edit pdf-document. after clicking the button a pdf-document is shown and the user can view and edit it. the user must be ablke to switch back to the main-form without closing the pdf-document and open an other one to compare the two...

  • How to create an index from more than one pages document?

    I have 10 different pages documents. Each document is a book chapter. Now I would like to create one index for all of these chapters in a new pages-file without copying all files into one single file. How does this work?

    Thanks for your answer. Than this is a real deficit of pages. Have you got any ideas for an alternative solution, that doesn´t force me to work with Microsoft? I have a document of 300 pages, having this in one document is neither practical nor stable. Thank for supporting!

  • How to active more than one front panel in the same application ?

    Hello,
    I want to active several front panels in the same application. I am a recent labview's user and it's difficult to solve this question.
    Thanks for your help.
    Regards

    But, each VI, including each subVI has a front panel. If you want several front panels, that implies using several VIs. The top level VI will call the appropriate subVI. Each subVI that you need as a UI can be set to 'Show front panel when called' and 'close afterwards if originally closed'. These settings can be accessed through popping up on the VI's icon and selecting VI Properties..., then selecting Window Appearance, then selecting the customize button or the dialog radio button.
    Hope that this helps,
    Bob
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • Sending more than one original document via INT

    Hi all,
    I've created a DIR with 2 Original Documents uploaded in.
    When I start the distribution (Distribution type --> INT) I receive the e-mail without any attachment.
    Otherwise, if I upload a single original document in the DIR, I get the correct e-mail (with the attachment).
    Suggestions?
    Thanks,
    Marco.
    Edited by: Marco Cariello on Jul 22, 2009 2:53 PM

    Hi,
    this customizing setting was already set in DC10
    Any other suggestions?
    BR
    Marco
    Edited by: Marco Cariello on Jul 23, 2009 1:02 PM

  • Can't open more than one file at once (Indesign CS3)

    hi there
    I have to deal with a strange problem, every time (well actually randomly) I try to open more than one indesign file at once, indesign just stays in the background and I can't get it to show up.
    the only thing I can to is force quite the application and restart indesign. Sometimes I'm able to see one of the open documents but I can't do anything with it (as there are no tools and no other indesign windows).
    Im not the only one having this problem, my work mate just updated his osx from 10.4 to 10.5, and now he is having the same problems...
    any suggestions why that is?
    cheers
    (my system: mac 2x2.66ghz dual-core intel xeon, 1gb ram, osx 10.5.2, indesign cs3
    my work mates system: mac G5, 1gb ram, indesign cs3, osx 10.5.2)

    Every system has issues when its first released.
    What's the point of jumping to a new system on a production machine when everything works perfectly in the old system?
    Monitor these forums and other boards and as soon as Apple and Adobe have a fix jump to the new system.

Maybe you are looking for

  • What is the best way to stack DAQ aquired data in labview?

    I'm developing an application to work with an M-series daq card and labview 8.5 to output a signal and then record on 8 differential inputs for a short period of time (~10 ms). I need to stack my data, however, because the incoming signal will be ver

  • How to create an audit trail file and what is it ( pls see the code)

    All my System.out.println statements , should be printed in an audit file , instead of printing to a console . How and where in the program , i should create a file and how should i write System.out.println statements output to it . Pls help me with

  • Windows Forms with ActiveX PDF viewer steals focus when LoadFile called

    I've been very frustrated with the PDF viewer. I currently have the Acrobat Reader 8.1.2 installed and I've created an extremely simple app that has a main window with two additional child windows that are owned by the main window. I've also set a ti

  • JCOs concept

    hi experts please explain me JCOs concept what is the purpose of JCOs how we are using JCOs I created FlightBooking sample tutorial application, i am getting  com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to resolve JCO destinat

  • Proxying FTP though SUN One web proxy

    Hi, I have to find a reliable FTP proxy suitable for use with command line FTP clients. Tried several so far but none meet the criteria (fast, reliable, supported) for a production-ready system. Is there a method to configure the SUN One proxy such t