[AS] Can't open multiple indd files of a chosen folder

Hi,
I just can't get the opening of a bunch of indesign files inside a chosen folder with AS.
I write this :
--Prompt the user for a folder to be picked including indd files
set
b originfolder
to (choose folder with prompt "Choisissez le dossier contenant les fichiers Indesign")
--Try to open all the indd files included in the
tell application "Adobe InDesign CS3" to open every file whose extension ends with ".indd" of folder
b finalfolder
end tell
I am going nuts failing. I heard about a "creating list of files" way but when I try it, error says that it can't convert the files to a string.
Hope someone can help. Thanks in advance.
Loic

Hi Larry,
You 're right.
This is the point, it works fine !
thanks

Similar Messages

  • Open multiple .indd files

    Hello,
    usually when I have to ask for opening a single .indd file I use something like this:
    fileToOpen = File.openDialog("Open a document");
    myDocument = app.open(File(fileToOpen.fullName));
    But what if I have to open multiple files at once (eg. selecting them from the Desktop)?
    I read from the Indesign object model that the "open" function of the "application" object can accept an array of files.. am I right?
    Thanks in advance

    @lglmrc – the openDialog() method comes with another argument for opening multiple files. That argument is set to "false" by default.
    Setting it to "true" is the key here:
    var FilesToOpen = File.openDialog("Open one or more documents", true);
    for(var n=0;n<FilesToOpen.length;n++){
        app.open(FilesToOpen[n]);
    Alternatively there is the openDlg() method, that also comes with the second argument.
    See also:
    http://jongware.mit.edu/idcs6js/pc_File.html#openDialog
    File openDialog (prompt: string[, filter: any=null][, multiSelect: bool=false])
    Opens a dialog so the user can select one or more files to open.
    Opens the built-in platform-specific file-browsing dialog in which a user can select an existing file or multiple files, and creates new File objects to represent the selected files.
    • If the user clicks OK, returns a File object for the selected file, or an array of objects if multiple files are selected.
    • If the user cancels, returns null.
    Uwe

  • Suddenly can't open multiple image files in CS5

    I recently transferred LR 5.3 and CS5 (12.04x64X) onto a new PC (OS Windows 7 64-bit). Both programs are working fine individually. And single images in LR open just fine for editing in CS5. But when I try to open multiple images (to merge as a panoramic) or open multiple images as separate layers, nothing happens.  CS5 opens on top of LR, but the files themselves never open. No problems doing this a few days ago with my older computer (same programs, same operating system).
    Any suggestions for fixing this would be much appreciated.

    When you say nothing is showing up, do you mean it is as if you didn’t use File / Open, or is it more that there is something but it is gray or white or black without any image detail?  If the latter, perhaps something like a video driver update or system-level change has made things incompatible with how PSE11 tries to display images.
    Have you rebooted?
    Have you reset your preferences?  You can do this by holding down Ctrl-Shift-Alt at the same time while PSE11 is starting up (or at least while the editor is starting up) and you’ll get a message about deleting the preferences file or not before you see the splash screen.   Various other key combinations will ask for an additional plug-ins folder or a different scratch disk location.  If you are going to delete your preferences file you might want to review the settings, first, in case there is something important you need to reconfigure once the preferences have been reset.

  • I just updated Indesign but still can't open an .indd file.

    I just updated Indesign through the Creative Cloud App, but I still can't open a file provided by a client. The error message says the file was saved with "a newer version of Adobe Indesign CC (9.2). Not sure why this is the case since I have a CC subscription. Any advice would be appreciated. Thanks.

    Okay, I figured it out. There are 2 versions of Indesign, Illustrator and Photoshop currently released by Adobe: CS6 and CC. Hadn't been paying attention, so it was confusing. It's not immediately clear on the Adobe site that there are 2 versions. Not very good customer support/relations in that respect.

  • Can I open multiple jpeg files in Adobe Camera Raw ?

    Hi, it seems that I cannot do this - not an option in PE11 ??  Such a pity if not ! 
    I can open one JPEG at a time, or multiple Raw images in ACR. 
    Have checked other sources including Barbara Brundage "The Missing Manual" but whilst it does not
    specifically say you cannot, likewise there is no indication that you can.
    Cheers
    Mistyisle

    Many thanks, Barbara.  Must admit I had more or less assumed that was the reason.  Just living in hopes !
    Mistyisle
    PS  - your manual is excellent, an invaluable resource 

  • Open multiple indd docs through SDK

    Hi guys
    How can I open multiple indesign documents found in a folder chosen
    through a folder chooser?
    I need to open each indesign doc in that folder and do some
    modification on each.
    Here is what I have already written. Now how do I proceed please
    SDKFolderChooser folderChooser;
    folderChooser.SetTitle("Select folder where Indesign Docs are");
    folderChooser.ShowDialog();
    if (!folderChooser.IsChosen())
    break; // cancelled
    IDFile inFolder = folderChooser.GetIDFile();
    PMString inFolderPath = folderChooser.GetPath();
    if (inFolderPath.IsEmpty())
    break;
    //Now open loop through each file and do some processing on each one at a time
    Logically I just have to loop through all the files in that folder,
    open them and do my processing but I just cant find the right snippets
    anywhere. I guess its pretty easy for u guys but am real new at that
    and just cant find any examples anywhere.
    Thanks for your help
    Alicia

    Hi Alicia!
    You can use the FileSystemIterator to go through all the files in a folder. See the paneltreeview sdk sample plug-in for example code for this.
    Basically you probably want something like this:
        PlatformFileSystemIterator iter;
        iter.SetStartingPath(inFolderPath);
        IDFile idFile;
        PMString filter("\\*.indd");
        bool16 hasNext = iter.FindFirstFile(idFile, filter);
        SDKLayoutHelper helper;
        if (FileUtils::DoesFileExist(idFile))
          do
              UIDRef docRef(helper.OpenDocument(idFile));
              ASSERT(docRef);
              helper.OpenLayoutWindow(docRef);
              hasNext = iter.FindNextFile(idFile);
          while (hasNext);
    Good luck!
    Oh, you need to include the actual implementations of PlatformFileSystemIterator and SDKLayoutHelper to your project so they are compiled into the plug-in, as they arent part of the InDesign runtime libs.
    /Andreas

  • How to export multiple indd files to individual PDF's?

    Is there a way without using scripting, to simply take, say 10 single indesign files (all just single 3.5x2 business card layouts) and export them to a pre-defined PDF preset resulting in 10 single PDF's? (other than one at a time?)
    I tried a few things from Acrobat 9 pro, one of them being File/export/export multiple files/  thinking that must be the ticket, but
    1) I can't find my pre-defined PDF preset in the "export to dropdown list" (but thats secondary, probably can add that in somehow, right?) and
    2) even when I just pick PDF/a or PDF/x it starts the process, then tries to open each indd doc but a message comes up saying it can't open the INDD  file(s) and nothing was processed.
    Can someone help me with this?
    Thank you.

    Macinbytes,
    Would you mind walking me through what you are doing?
    In your screen shot, that window looks like the preferences panel, in which you can set your PDF preset, correct?
    Here's what I have been trying.
    File/Create PDF/Batch Create Multiple files.
    Eventually, I get this window. (output options)
    Then when I hit OK, I get this error message saying the files cannot be opened.

  • Open Multiple PDF files from Production order/Routing

    Hi Everyone
    We are in ECC 6.0 environment. We have a scenario where multiple documents were attached to single operation and also at multiple operations. But when I was trying to open these PDF documents, only the last file was getting opened and closing the previous file. How can I open multiple PDF files at one time from Production order or Routing?
    Any help is appreciated.
    Regards
    Prasad

    Hi Prasad,
    from DMS standard I regret but such a functionality is not available. In the standard originals can be opened only one after another.
    I think for realising this functionality an individual modificatoin is necessary.
    Best regards,
    Christoph

  • Can not open multiple Adobe PDF Files at same time

    I am having trouble with opening multiple .PDF files in Adobe.  Once I have one (1) PDF open, when I try to open another file it opens and then instantly force closes that file, but leaves the original PDF file open.  There are no error notifications or anything - its as if you never tried to open the other file.  In short I can only have one (1) PDF open at a time.  It does not matter whether I try to open the file straight from the directory or whether I go to File -> Open -> find file and Click OK.  The same thing happens either way.
    Things I have tried already:
    1) Restart Computer (I think this is SOP for computer issues. LOL)
    2) Closed all adobe session and end processes (in task manager) for all adobe related processes (that I can identify).
    I am running Adobe 9 Professional on Windows XP.  Please let me know if you need any additional information.
    I would appreciate any help anyone can provide.  I have tried researching this issue on this and other forums without finding a similar thread/issue.
    Thanks!
    Mel

    Are you using any plugins, like PDFlyer?

  • How can I save an indd file as an idml file without opening the document?

    I cannot open an InDesign file that was made in a later version of InDesign because I don't have the right plugins. How can I convert this indd file to an idml file without opening it?

    Well..... sort of depends on your version.
    If you have any version as part of CC subscription, the latest updates are supposed to be using a cloud-based service to generate the IDML for you so that you can open the newer files seamlessly.

  • I Am Using Photoshop CS5 - I Used To Be Able To Open Multiple SINGLE Files - Now They Over Lap - What Do I Do ¿ - How Can I Reboot My App To My Original Settings ¿

    I Am Using Photoshop CS5 - I Used To Be Able To Open Multiple Single Files - Now They Just Overlap As One File ! - How Can I Fix This Or Reboot My App To My Original Settings ?

    In Preferences UNcheck Open Documents as Tabs

  • Can't open multiple PDF docs on same display

    I have a Windows 7 x64 machine, with Acrobat X Standard, running dual displays.
    The problem is that I can't get multiple PDF files to open on my right display.  One PDF file will open on the right display, if no other PDF files are open.  The first one always opens there by default.  The problem is that if one file is open, any subsequent PDF files ALWAYS open on the left display, on top of my design software.  Then I have to drag it back over to the right to see what I'm doing on the left.  Very annoying.
    EVERY other application installed on my machine opens where it's supposed to.  Multiple Firefox windows always open in the same place on the right display.  Multiple Windows Explorer windows always open on the right display.  Multiple Outlook, Word, Excel, etc. docs always open on the right display.
    Acrobat is the ONLY app that will not open multiple docs on the right side.  I had the same issue with Acrobat Reader 9 before I installed X.
    My old machine used to do the same thing with Acrobat 8 Standard, and at some point there was an update that seemed to fix it.  However I can't seem to get it to work with X on my current machine.  Any ideas?

    The problem is with the document, not the program.You can try to open the file in Preview and print from there. Otherwise, you will need to contact the creator of the document for a new version of the file.

  • How can I print multiple PDF files at once using Windows 7?

    How can I print multiple PDF files at once, on an HP LJ Pro 400 xcolocr printer without opening each
    one separately using Windows 7?

    I am sorry, but to get your issue more exposure I would suggest posting it in the commercial forums since this is a commercial printer. You can do this at http://h30499.www3.hp.com/hpeb/
    I hope this helps.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • I can only open 1 .Ai file at a time from explorer

    Okay.  Googling is getting me nowhere and posting this is a last resort.
    computer is running:
    Windows 7 x64 SP1
    Creative Suite 5.5
    Illustrator 5.1
    The problem is:
    From within Windows Explorer, I can only open 1 Illustrator file at a time.  To get a different file to open, I either have to drag and drop the second file into the tabs under the menubar, or I need to quit Illustrator and re-open it.  Also,  I can not open additional files from Explorer one-at-a-time if one is already open.
    Quirks:
    If I go to File -> Open I can select multiple files from within the Open File dialogue window and they open just fine.  but i can't do it from within windows explorer.  This used to work and now it doesn't and I have no idea why.  Can anyone help me out?
    Seriously? 137 views and no replies?  No one has run into this before?

    This is a long shot but try going to Preferences/Type and uncheck "Show Font Names in English".
    Quit illustrator and restart, does it work now?
    The reason I´m suggesting this is that unless I have this box unchecked, some internal function in illustrator crashes after I´ve opened one document and I have to quit & restart if I wan´t to open another one. A rather silly bug and I stumpled upon the solution by accident after cursing illustrator for a couple of months...

  • Can't open any PDF file with Adobe Acrobat XI Pro

    I have tried to open multiple Acrobat files but none will open. I get a FATAL ERROR message saying: "Acrobat failed to connect to a DDE server."  I've created documents in word and publisher and am able to convert to pdf format but after the pdf file has been created I cannot open to view and I get the error message. Please help! Thank you!

    No I am thinking that the problem is with Acrobat XI Pro. Because as previously noted I can create a Word document and save as a PDF, the PDF document will be created by Acrobat XI Pro but will not open with Acrobat XI Pro, which normally happens automatically upon creating the PDF file from say Word, Exel, Publisher, etc. When I try to open with Acrobat XI Pro it give me the FATAL ERROR message saying: "Acrobat failed to connect to a DDE server". Since I could not open any of my PDF documents with Acrobta XI Pro, because I had Acrobat XI Pro as my default PDF creater and reader, I installed Adobe Reader, hoping that it would allow me to view the PDF documents that I had just created with Acrobat XI Pro and it did. The problem is that I cannot open Acrobat XI Pro to creat or edit or add PDF restrictions on  a PDF document straight from Acrobat XI Pro, but I can create a, say Word document, and save as a PDF file. Before installing Adobe Reader I could not open, see or edit the just created PDF file created through Word it is just now after installing Acrobat Reader.
    Also worth noting.
    I have been told that this same problem happened sometime ago with Adobe Acrobat X Pro (Vesion 10) and that the problem was fixed by editing something within the registry. Does anyone know anything about that? Thanks!

Maybe you are looking for

  • Some images not showing on ipad when book is previewed

    When I preview the book in progress, some images only appear in the thumbnails, not on the full page view. These same images were showing up a few versions ago.  Other images are showing up just fine.

  • Error with Exchange rate type

    Hello all, While releasing the billing document to accounting, getting the error: 'An exchange rate type is not defined for country US'. In customer master, have maintained Exchange rate as 'M'. where do we maintain the exchange rate type for country

  • Problem with getting specified pages for printing

    requested Sir, I am sanjeev, presently working with adobe indesign for publishing. i am working verious sets of master pages, now have a problem go gate specific pages for print in the same software. it shows saction name that i could not inditify gi

  • Problems refreshing list

    I have two Tlists that I dynamically created with a record group with two procedures: get_users and populate_list. I have trouble refreshing the list every time I try to create a new record. I get error: unable to populate list with record group. I'v

  • Is it possible to change serial number in FCP?

    I have two licenses of FCP. Just installed on a new Mac Pro, and I installed with the wrong serial number (which results in protection error when both FCP programs are open). Is it possible to change serial number without reinstalling (takes hours..)