InDesign CS3 Scripting XML Import Multiple Images into same Text Frame

I am having trouble importing multiple images into the same Text Frame using XML import. I imported 5 images into the text frame. However, all 5 images are laying on top of one another. Does anyone know if there is a way to have all images laying out like how Microsoft Word handles inline images, i.e., laying out next image to the right of previsous image in the same line and if there is not enough space left in the line, then wrap to next line. Thanks in advance. I understand I could use JavaScript to do post import processing, e.g, calculate the image size and place each images accordingly. But I am trying to see whether there is a way to do this without scripts.

You can apply an object style to all anchored images by script. A text frame containing main flow should be selected.
var doc = app.activeDocument;
var textFrame =  app.selection[0];
var rectangles = textFrame.texts[0].rectangles;
if (rectangles.length > 0) {
     for (var i=0; i < rectangles.length; i++) {
          rectangles[i].appliedObjectStyle = doc.objectStyles.item("Cover");
However, there is a better approach:
Step 1
Create place holders for a single "Book" element and format it as needed -- apply an object style to the cover.
Step 2
Import the xml file -- the placeholders are replaced with data from the 1st xml element
Step 3
Drag & drop the element containing all "Books" elements into the main flow -- all elements are placed and formatted the same way as in step 1.
Finally, add a new page, click the overset text icon and autoflow text to add pages so that to fit all the text.
Hope this helps.
Kasyan

Similar Messages

  • How do I import multiple images into single individual cells?

    Hi folks,
    I'm new to the Mac (yeah!) and imagine there just has to be a way to import a bunch of images into separate cells in Mac "Numbers" ... am I right?
    Essentially what I'd like to do is a file folder with 600 images in it, and import those directly into Mac Numbers with one picture being assigned to it's own cell. So if below were a spreadsheet it would look like this:
    Actual Picture - Picture Name - Item Description ... and so on.
    I'm trying to work with inventory items, and this is the only way I can think of doing it. Suggestions!?!?
    Here is a link to creating a macro in Excel to do a similar thing:
    http://en.kioskea.net/forum/affich-269046-adding-a-loop-to-macro-to-insert-pictu res
    Thanks for your help.
    D

    D,
    I guess you're taking another shot at getting a response. You risk getting parallel discussions going with the same content.
    What you are contemplating seems logical enough, but I think you will find that it is impractical in Numbers. Given the size of photograph files these days, you will choke Numbers in short order. You will have to be careful that you embed only photos large enough to be of use/viewable, and keep your full-sized copies elsewhere. You might find that an Apple Script can do the import for you, but otherwise it's drag and drop from the Media Browser.
    Jerry

  • InDesign CS3 crashes when importing multiple files.

    I've got a new box that's been running pretty solid for several weeks now. It's Win 7 with 8 gigs. Just last night it starts crashing when I'm importing multiple files. Doesn't matter if it's JPGs, TIFFs, or PDFs.
    I can import all the same files one by one using the place command.
    Importing multiples using the place command or dragging & dropping crashes.
    It's not a case of placing a PDF using the bleed box and no bleed box is set. And that usually doesn't crash InDesign, just fails to import.
    I deleted the preferences file to no avail.
    CS 5.5 has no problems. No, I can't just use 5.5. I'm the only person with it and really only use it for converting files for customers that don't have the common sense to send a PDF. Other people in the shop have to be able to open these same files.
    Any ideas? This is already a pain since one of my main jobs is ganging business cards 72 up on a sheet.
    Thanks,
    Mike

    Only difference between with and without the plugin is the Faulting process id, Faulting application start time, and Report Id...
    Faulting application name: InDesign.exe, version: 5.0.0.458, time stamp: 0x45f900b6
    Faulting module name: APPFRAMEWORK.RPLN, version: 5.0.0.458, time stamp: 0x45f903d0
    Exception code: 0xc0000005
    Fault offset: 0x0001b8b0
    Faulting process id: 0x2ac
    Faulting application start time: 0x01cd4b1c9256c068
    Faulting application path: C:\Program Files (x86)\AdobeCS3\Adobe InDesign CS3\InDesign.exe
    Faulting module path: C:\Program Files (x86)\AdobeCS3\Adobe InDesign CS3\Required\APPFRAMEWORK.RPLN
    Report Id: ec708910-b70f-11e1-ad4c-e840f209298e
    There's also a .net crash but not with every instance of the InDesign crash.
    Application: InDesign.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: exception code c0000005, exception address 0AD6B8B0
    Stack:

  • Mac Wizards! Stuck importing multiple images into individual cells...

    Hi folks,
    I'm new to the Mac (yeah!) and imagine there just has to be a way to import a bunch of images into separate cells in Mac "Numbers" ... am I right?
    Essentially what I'd like to do is a file folder with 600 images in it, and import those directly into Mac Numbers with one picture being assigned to it's own cell. So if below were a spreadsheet it would look like this:
    Actual Picture - Picture Name - Item Description ... and so on.
    I'm trying to work with inventory items, and this is the only way I can think of doing it. Suggestions!?!?
    Here is a link to creating a macro in Excel to do a similar thing:
    http://en.kioskea.net/forum/affich-269046-adding-a-loop-to-macro-to-insert-pictu res
    Thanks for your help.
    D

    There is no macro feature in Numbers.
    The only way to code what you wish would be to use AppleScript if Numbers '08 was scriptable.
    As it's not, you must do the job by hand or switch to Numbers '09 which is scriptable.
    Yvan KOENIG (VALLAURIS, France) mercredi 3 mars 2010 22:10:14

  • Importing multiple images into flash movie as a movie

    I have about 200 images that have been rendered for me frame
    by frame, how do I put this into flash as a movie? I don't want to
    do this manually as it would be a complete waste of my time.
    Much thanks in advance!

    you can import them as an image sequence, then create a movie
    clip out of it. File-->import-->import to stage.. Then select
    all the images, and it something should pop up asking if you are
    trying to create an image sequence, select yes.

  • SCRIPT TO IMPORT MULTIPLE PLACED IMAGES..AND OUTPUT MULTIPLE IMAGES TO SINGLE PDF.

    Anyone got a script to import multiple placed images into CS4? or is this possible in CS5?
    and can we output multiple layers into a single PDF in illustrator?  Or multiple layers into single JPEGS from illustrator with one command instead of individually saving out each page... would be a huge time saver for me.
    Currently I output each completed layer individually and then right click those outputted jpegs in their output folder and choose "combine supported files into acrobat..." to make a single acrobat file..
    I`d also like to be able to CTRL click multiple layers and go save as... only those layers get saved out...
    And so adding something in the Save for PDF output dialogue box to save layers to multiple pages would be a helpful time saver..

    In CS 4 and CS 5 you can drag and drop fro m the finder or the Bridge, and I guess any other similar type viewer, multiple number of image files to a document. You can configure the bridge in such a way as to allow you to see the Bridge and your document at the same time for this very purpose.
    If you just drag and drop the files are linked if you drag while holding the shift key then the files will be embedded.
    ID and PS CS 5 have a minibridge which works the sam way but is an actually panel and will stay in the front.
    I separate the images but they import one on top of another.

  • How to import multiple images at the same time in illustrator?

    How to import multiple images in a document at the same time in illustrator?
    It's possible?

    Script: Place Multiple Files in Illustrator (Kelso)
    http://kelsocartography.com/blog/?p=2047

  • How do I add multiple images into one file?

    I'm sure this is something that's been covered in another post (or even in the help portal) but I think my wording in my search terms are not correct or... I don't know, because I just can't find what I'm looking for.
    I want to know how to add multiple images into one file/one image, both horizontally and/or vertically. To give you an idea of what I mean, check out :
    http://www.best10apps.com/apps/comic-story,531596060.html
    If you scroll down, you'll see a heading entitled : Screenshots of Comic Story. Notice how there's 3 pictures (divided by borders). 2 of those pictures are side by side, and 1 of them is below the first 2 pictures.
    I want to know how to add different pictures/images and put them into one picture.

    One way is to create template PSD files and populate them with your images using Photoshops scripts.
    Photo Collage Toolkit UPDATED June 12, added Picture Package Support via PasteImageRoll and BatchPicturePackage scripts.
    The package includes four simple rules to follow when making Photo Collage Template PSD files so they will be compatible with my Photoshop scripts.
    There are eleven scripts in this package they provide the following functions:
    TestCollageTemplate.jsx - Used to test a Photo Collage Template while you are making it with Photoshop.
    CollageTemplateBuilder.jsx - Can build Templates compatible with this toolkit's scripts.
    LayerToAlphaChan.jsx - Used to convert a Prototype Image Layer stack into a template document.
    InteractivePopulateCollage.jsx - Used to interactively populate Any Photo Collage template. Offers most user control inserting pictures and text.
    ReplaceCollageImage.jsx - use to replace a populated collage image Smart Object layer with an other image correctly resized and positioned.
    ChangeTextSize.jsx - This script can be used to change Image stamps text size when the size used by the populating did not work well.
    PopulateCollageTemplate.jsx - Used to Automatically populate a Photo Collage template and leave the populated copy open in Photoshop.
    BatchOneImageCollage.jsx - Used to Automatically Batch Populate Collage templates that only have one image inserted. The Collage or Image may be stamped with text.
    BatchMultiImageCollage.jsx - Used to Automatically Batch Populate Any Photo Collage template with images in a source image folder. Easier to use than the interactive script. Saved collages can be tweaked.
    BatchPicturePackage.jsx - Used to Automatically Batch Populate Any Photo Collage template with an image in a source image folder
    PasteImageRoll.jsx - Paste Images into a document to be print on roll paper.
    Documentation and Examples

  • Import Multiple Excel Into Sql Server

    I have 4 Excel spreadsheets all with different formatting and column names that I want to use powershell to import into ONE Sql Server Table that I will want to create with powershell.  I have found several instances of importing one workbook, but I
    haven't found one where you can import multiple workbooks into the same table.  Can someone show sample code for a reference on how to import multiple spreadsheets into the same table with powershell please?  I found this link which looks like a
    GREAT starting point, but unfortunately it is only showing how to do one table, and I am WAY new to powershell so can't tweak it on my own to set it to import multiple
    http://www.sqlserver-dba.com/2013/01/sql-server-export-excel-data-to-sql-server-with-powershell.html

    Hi IndigoMontoya,
    As a workaroud, how about merge mutiple excel files into one file, then import this excel file to sql table?
    To merge excel files, please refer to this script:
    $Files = 'd:\merge1.xlsx','d:\merge2.xlsx'
    #Launch Excel, and make it do as its told (supress confirmations)
    $Excel = New-Object -ComObject Excel.Application
    $Excel.Visible = $True
    $Excel.DisplayAlerts = $False
    #Open up a new workbook
    $Dest = $Excel.Workbooks.Add()
    #Loop through files, opening each, selecting the Used range, and only grabbing the first 6 columns of it. Then find next available row on the destination worksheet and paste the data
    ForEach($File in $Files[0..4]){
    $Source = $Excel.Workbooks.Open($File,$true,$true)
    If(($Dest.ActiveSheet.UsedRange.Count -eq 1) -and ([String]::IsNullOrEmpty($Dest.ActiveSheet.Range("A1").Value2))){ #If there is only 1 used cell and it is blank select A1
    [void]$source.ActiveSheet.Range("A1","F$(($Source.ActiveSheet.UsedRange.Rows|Select -Last 1).Row)").Copy()
    [void]$Dest.Activate()
    [void]$Dest.ActiveSheet.Range("A1").Select()
    }Else{ #If there is data go to the next empty row and select Column A
    [void]$source.ActiveSheet.Range("A1","F$(($Source.ActiveSheet.UsedRange.Rows|Select -Last 1).Row)").Copy()
    [void]$Dest.Activate()
    [void]$Dest.ActiveSheet.Range("A$(($Dest.ActiveSheet.UsedRange.Rows|Select -last 1).row+1)").Select()
    [void]$Dest.ActiveSheet.Paste()
    $Source.Close()
    $Dest.SaveAs("d:\merge3.xlsx",51)
    $Dest.close()
    $Excel.Quit()
    Reference from:
    How to use powershell to copy several excel worksheets and make a new one?
    I hope this helps.

  • RH10 suddenly won't let me add/import new images into my project

    I have tried accessing the "Insert Image" option using the various methods (menu, toolbar icon, right click menu), but once the dialog box is open, I click on the browse folder to find the image that I added via Explorer, but nothing happens and the app freezes.  The only thing I am able to do is close RH via the Task Manager.  I have tried rebooting and also tried doing this in multiple projects to make sure it's not my main project with the problem.  This same thing happens every time.
    I CAN add an image that has already been imported into the project... I tried doing that then using Image Properties to bring in the newly created image... same result... freezes the app.  My project is only about 50MB in size... and I probably only have 2 or 3 dozen images in it so far.
    I am hoping you are not going to say uninstall and re-install because I don't have the disc with me today... working from home.
    Help please.

    TOTAL weirdness... so I just got into work... turned on my laptop... so i'm not working remotely... opened my project... at first i got this error:
    then i continued to get a series of errors of various kinds.. finally one telling me the cpd file was corrupt... now mind you... I had to restart RH several times yesterday... also did a reboot... and didn't get any of these errors...I also tried to import an image into an older project to see if it was the project or RH.. but i had the same problem with the other project - no.. didn't try a NEW project as I was planning at your suggestion because it's working in my existing project now.
    so i deleted the cpd... opened the project.. and tried to import a new image.. and BAM.. it worked like always!  WHAT'S UP WITH THAT?
    I don't understand what the problem could have been if this wasn't working even without VPN...
    Thoughts?  I'd like to avoid this issue next time I'm working from home.. which will be next week!

  • Bridge CS6 Script to Find Multiple Images in Multiple folders.

    Is it possible to have a script to find multiple images within multiple folders that is on a external hard drive?
    For instances I have a external hard drive assuming it's for a library of pictures.
    Inside this hard drive has folders named as below
    1-1000
    1001-2000
    2001-3000
    3001-4000
    If I had a perfect csv file for example that calls out for specific pictures for example 2, 10,1500 and 2000 (remember think big, it may be a larger list than this it could be hundreds or thousands of pictures); is there a script that would allow me to find these images and save a copy of them on to my desktop so that way I don't have to hunt for them in the old fashion way? I can read scripts but writing them is a different story.

    If you want to go with Batch I would recommend creating an Action of more or less these steps:
    • set the resolution to the same as the background image’s
    • change the image from Background Layer to regular Layer if necessary
    • convert it to a Smart Object
    • add a Drop Shadow Layer Style to the image (do not use Global Angle)
    • place the background image (File > Place …)
    • move it behind the image layer
    • Image > Reveal All
    • make Selection from that layer’s transparency (cmd-click its icon in the Layers Panel) and use Image > Crop
    • select and transform the image layer to fit the intended position
    This would naturally work out best if the images had the same size and proportions.
    For the reflection on the floor duplicate the image, flip it vertically, move it in position and reduce its opacity to maybe 10%.
    Realistically you may have to hide it partially behind the pillows, a Vector Mask would be an option.

  • I imported 635 images into an iPhoto album so that I can share them via a photo-stream. However, iPhoto says there are only 600. When I try to add the missing images it says they are already there. Why can i not see these images in iPhoto?

    I imported 635 images into an iPhoto album so that I can share them via a photo-stream. However, iPhoto says there are only 600. When I try to add the missing images it says they are already there. Why can i not see these images in iPhoto?

    Generally I would not use Facebook for sharing any photos, it compresses the photos substantially, and when you have shadows and dark colours you get visible "bands" where there should be subtle gradients, ie at sunsets and sunrises.
    It sounds like you are using two methods to upload to Facebook:
    1. Sharing from within Aperture, which basically syncs Facebook with your Aperture album, so any changes made at either end gets synced, hence the deletions from Albums, although the original file should still be in your library, just removed rom the album. It is like a playlist in iTunes.
    2. Exporting pics and uploading to Facebook from the browser.
    I am not sure how method 1 gets compressed, but I know that uploading hi-res jpegs to Facebook using method 2 results in poor quality images.
    I wouldn't even bother comparing option 1 or 2, and they will both be poor images once you view them on Facebook, as opposed to viewing uploaded images on proper image sharing / hosting sites.
    Your problem is not with Aperture, it is using Facebook for showing your work.
    If you export pics form Aperture at high res jpegs or TIFFs your images will be fine.
    If you insist to use Facebook as your way to share your work, then your workflow should be this:
    1. Right click images you want to share.
    2. Select Export version.
    3. Export as 100% size and ensure the export settings are set at 100% quality.
    4. Upload this pic into Facebook.
    This will get you the best image size and resolution on Facebook.
    See how you go.

  • Can't import any images into lightroom 5

    Working away in my studio and suddenly I can't import any images into lightroom 5 (version5.5) for macbook pro os x 10.9.5

    Thank you for your response,
    ...my complete goofiness.
    I somehow managed to change my destination folder in Lightroom when importing images and could not copy to the "location" (or as the right panel indicates, the "destination").
    So adjusted my destination folder and am back to importing as usual.
    _Cindy

  • Running InDesign CS3 Script like a service

    Hi,
    Do anybody know if is there any option to run an InDesign CS3 Script as a service or daemon? I would like to execute some actions depending on some others and I need to have an script running all the time and checking for certain states.
    Thanks
    Aleix

    Hi,
    Can you give me information for both cases? The truth is that I need to monitor something related with an InDesign plug-in and maybe one or both methods could help me.
    Thanks
    Aleix

  • Imovie imports different image into project

    I'm trying to create a slideshow using only jpg images. Sometimes (now frequently) when I drag a picture into the slideshow from iphoto, desktop, Adobe Bridge, or even straight out of downloads, the image that actually shows up in imovie is a previously used picture.  Sometimes the correct image shows up in the strip, but a different photo shows up in the preview window.
    I spent several hours at the Genius Bar yesterday and we dumped a plist and rebuilt the entire iphoto library.
    I've got to say that after having imovie closed all night, I reopened it this morning and was able to import  correct images into the correct positions on my project, but then it started acting up again (after I cancelled my Genius bar appointment for today!), and is again putting different pictures into the project than I am actually trying to put into the project.
    I litterally just need to get about 5 more images into the project!
    Please help
    Using imovie 11 and OSx 10.7.5
    Thanks in advance

    I didn't film the video, so I'm not sure what kind of camera was used.
    Here is a screenshot of the Quicktime Inspector:
    And here is a bit more information about my situation: The video plays fine off of the thumb drive it was given to me on, and it plays fine off of my hard drive. But when I import the video into iMovie, all I see is the one still video shot while the audio plays beneath it. I've tried this on two different computers and on both of them, the video is frozen once it's imported into iMovie.
    Bizarre.
    I appreciate your help!

Maybe you are looking for

  • Is my iMac or external audio interface at fault?

    My hardware is as follows: 2010 21.5" iMac i3 3.06ghz, all standard. Yamaha n8 Digital Mixing Studio 800-400 FireWire cable (of which I have tried two, now using a more expensive Belkin cable) Since new which is nearly a month ago I've noticed stutte

  • You can no longer change the password

    Good day! I have a problem on a Netweaver 2004s BI server. When a user tries to change his password at the logon screen, the error message : "You can no longer change the password" appears. To clarify, user types his current user id and password in t

  • TAXINN - Base Value in Migo for the item is ZERO

    Hi, We are using TAXINN Tax Procedure. In MIGO Excise Item Tab, Base value is coming zero.  Also it is updating in Excise Registers 23A part I & 2. Can anybody tell me where i am doing a mistake. Thanks in advance KK

  • Problem with calender?

    I have 2 questions about creating calender : 1- when I create a calender and add it to my main page as a portlet ,I noticed that when i click on the next button on the calender protlet to view the next page ,the next page is viewed on my whole page ,

  • Password Issue

    Oracle 9i Standards on Standalone with Win 2K Op. System. When created database, created/changed ID and password but system doesn't recognize. Give Ora -01017 Error. Is there a specific file to look at and fix. My SQLNET.ORA file is fine. Steve