Getting specific info on all images in a .indd file

How can I access the following info about all images in an InDesign document:
Page image is on
Image name
Image full path
Image corner location on page (x, y)
I would like to export this data to a txt or csv file with data for each image on a separate line.

Here is a Javascript that does so. It temporarily sets the ruler to "Page", so you get a logical offset from the left side for each page, rather than Spread or that other one no-one uses.
For items on the pasteboard, it says "pasteboard" for the page number; for missing links it says "(missing)" for the full path.
imgs = app.activeDocument.allGraphics;
result = [];
// Set ruler to PAGE
orgRuler = app.activeDocument.viewPreferences.rulerOrigin;
app.activeDocument.viewPreferences.rulerOrigin = RulerOrigin.PAGE_ORIGIN;
for (i=0; i<imgs.length; i++)
          line = [];
          pg = getPageFor (imgs[i]);
          if (pg == null)
                    line.push ("pasteboard");
          else
                    line.push (pg.name);
          line.push (imgs[i].itemLink.name);
          if (imgs[i].itemLink.status == LinkStatus.LINK_MISSING)
                    line.push ("(missing)");
          else
                    // The file path also includes the name, so let's split it
          //          line.push (imgs[i].itemLink.filePath);
                    str = imgs[i].itemLink.filePath.substring(0,imgs[i].itemLink.filePath.length - imgs[i].itemLink.name.length-1);
                    line.push (str);
          line.push (imgs[i].parent.geometricBounds[1]+","+imgs[i].parent.geometricBounds[0]);
          // Change the comma here to anything else
          // This is for a comma-delimited list
          result.push (line.join(","));
// alert (result.join("\r"));
writeFile = File.saveDialog( 'Save Report As:' )
if (writeFile != null)
          if (writeFile.open("w"))
                    for (i=0; i<result.length; i++)
                              writeFile.writeln (result[i]);
                    writeFile.close();
          } else
                    alert ("unable to create file "+writeFile.fsName);
app.activeDocument.viewPreferences.rulerOrigin = orgRuler;

Similar Messages

  • Export info about all images

    How can I export the following info about all images in an InDesign document:
    Page image is on
    Image name
    Image full path
    Image location on page (x, y)
    I would like to export this data to a txt or csv file with data for each image on a separate line.

    Assuming that the report you get when you File > Package an ID file is insufficient, this is a job for scripting.
    It's about a 6 line script:
    2 lines to open a file, 2 lines to loop over all images, 1 line each to print each piece of information, 1 line to close the file.
    I'm pretty sure some have been done before, so search around. If that fails, post in the scripting forum.
    Be specific about which x/y you want, though (a corner?), and also how it should handle facing pages and spread coordinates.

  • How to get all TextFrame from ImportedPage INDD Files?

    Hi everyone!
    Do you know the javascript scripts to get all textFrames in importedPage (.indd file)? Is it posible to do that or have some trick to do it?

    Use
    JDR_UTILS.LISTDOCUMENTS
    Use this API to list of all OA Framework the documents in a path/module. This script is very handy, as it provides a list of all the desired documents/extensions/personalizations in one go.
    DECLARE
    BEGIN
    jdr_utils.listdocuments('/oracle/apps/po/setup', TRUE);
    END;
    Thanks
    --Anil
    oracleanil.blogspot.com

  • Get Specific References for all Controls

    Using slightly modified code from here, I am generating an array of all control references on my main front panel which is then passed through to a number of subVIs. Although this functionality does work, it would be preferable to get specific references to the controls (for example, Boolean RefNum instead of Control RefNum). 
    Getting these specific references seems possible using To More Specific Class and Class Specifier constants. However, data storage becomes an issue because I can no longer use arrays (as they are a different data type). I am not sure if there is another way to pass this data on. I have experimented casting the RefNums to Variants, but to get the data from the variant, I have to know what RefNum type I am expecting which sort of defeats the purpose of doing this in the first place.
    A secondary problem is keeping the names of the references. The Control RefNums do not have names associated with them nor do I know how to assign names to them. I've again tried using variants and using the OpenG Set Data Name function, but this crashes LabVIEW without any indication of why.
    I've attached a version of my code that tries assign names using OpenG Set Data Name and build a variant array. To run it, simple add the VI as a subVI to a VI that has some boolean controls on the Front Panel. Apologies for the rough state of the code - I'm still in the process of figuring out how to make it work so things are a bit messy.
    Solved!
    Go to Solution.
    Attachments:
    Get Specific Control Refs.vi ‏28 KB

    I don't know if you'll get much better.  There is really no way I know of to have some fully flexible way of building named clusters of references based on any given front panel set you feed to it.
    I tend to do things the manual way (as there are also a bunch of references to front panel elements I wouldn't need).  I would do all the bundling work in a subVI.
    I'm attaching a zip file that contains the key VI's (unless I missed something) on the first project where I really tried to abstract out the reference building.  The files are LV9.
    On my main VI, I have the subVI called Build UI References early in the VI during an initialization phase.  I pass the reference to the main VI into that subVI that builds all the references.  I worked it as a master cluster that contains elements that are arrays of references of related controls.  It uses another subVI called Get References and Label Names that I created to help find controls.  I still need to use More Specific Class to get the property references, but I don that only once at the beginning.  I then pass that cluster wire out and to anywhere in my VI that would need access to the references for front panel elements.
    I use arrays of strings to supply the names I need to build and bundle the references.  This lets me ignore controls I don't care about.  The disadvantages to my system is that if I change the name of any control, I need to update the name within this subVI.  And if I want to add any controls, not only do I need to add the label names for the searching functions, I also need to update my typedef cluster (and you definitely want this to be a typedef) to add a spot to store the new reference.
    I hope this gives you some ideas.  It worked for me and I will likely use the scheme on another project (or even rewrite past projects using this scheme.)  If there are any ideas for improvements, I'd be happy to hear them.
    Attachments:
    Build UI refs.zip ‏83 KB

  • How do I get a list of all image files for a user?

    The Finder folder windows have changed the sidebar. I no longer see any way to configure the Finder window to display a quick search for all images. How do I easily run a search for all image files owned by a user?
    I am just starting to set up a brand new system that came with Yosemite and it's user interface has many changes from my older Snow Leopard system. I have many image files from many different sources that I wish to consolidate on the new system. I do not wish to rely on iPhoto at this point. I prefer to use the file system or Finder  or Spotlight.
    Model Name:
    Mac mini
      Model Identifier:
    Macmini7,1
      Processor Name:
    Intel Core i5
      Processor Speed:
    1.4 GHz
      Number of Processors:
    1
      Total Number of Cores:
    2
      L2 Cache (per Core):
    256 KB
      L3 Cache:
    3 MB
      Memory:
    8 GB
      Boot ROM Version:
    MM71.0220.B00
      SMC Version (system):
    2.24f32
    Model Name: M

    0. find the user id.
        a. log in as that specific user.
        b. run terminal
        c. type "echo $UID"
        d. write down the user id that will be displayed
    1. Go to the finder
    2. go to the user home folder
    3. click the box with the magnifying glass (upper right corner of the window)
    4. type .jpg
    5. a menu will pop under the magnifying glass box, select "jpg image"
    6. click the "plus" sign that's displayed to the right of the word "save"
    7. two pull down menus will appear, select "other" from the first one
    8. a new window will pull down, scroll to "owner" and select it
    9. back in the original window type the user id (a number) to the right of "owner" "equals"
    Hope this helps

  • Getting specific area of an image

    Is there away to display a specific area of an image?i have an image icon that uses a jpeg,but i do not want it to use the whole image for the icon.i know that imagebuffer has the method getsubimage but does imageicon have something similar?How can i do this?

    rogerio7 wrote:
    Is there away to display a specific area of an image?i have an image icon that uses a jpeg,but i do not want it to use the whole image for the icon.i know that imagebuffer has the method getsubimage but does imageicon have something similar?How can i do this?Not that I've seen, but you can always render that onto a BufferedImage which does...
    BufferedImage bi = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
    bi.getGraphics().drawImage(myImageIcon.getImage(), 0, 0, null);Now you can do pretty much what ever you want with it.

  • How can I get Aperture to dump the photo info on RAW images as a text file?

    When I am uploading files to something like dpReview I often want to provide information on the various aspects of the photo. Most of what I want to be show appears in the METADATA tab under photo info. Is there any way to dump this data for each image as a text file either during the export of the RAW to JPEG or otherwise?

    When you export a master you can create an accompanying IPICT4XMP Sidecar File, that contains the IPICT data. It is not plain text file, but you can open it wit a text editor (Xcode, if you have it) and copy the metadata from there.
    To create the the sidecar file set the Metadata selector to "createIPICT4XMP Sidecar File"

  • Various images get loaded into my All Images folder involuntarily

    My macbook air downloads various images into my All Images folder.  I have to manually go through the folder and put them in the trash.  For instance it copies the Facebook logo over and over or images from websites I visit.  How can I avoid this as it eats up my storage?  Thanks.

    How large are the images?
    Not sure I understand the rest of your question - your card show show as an icon on the desktop and you can just drag the pics to a new folder, import them into iPhoto or a number of other apps.

  • In my Macbook Pro finder folder under All Images, there are duplicate files, but one is small and the other is full size. I wanted to clean up the files, but don't know why I have two of everything. Any Ideas?

    In my Macbook Pro, the Finder folder has duplicate images in the 'all images' file. One image is small and the other is full size. First question is why do I have two of every image? Why is one small and the other large. Do I need two of everything? If not, which do I delete?
    thanks, Jean

    Hello fane,
    Re: duplicate images in finder.
    Nearly all images are JPG with a few GIF and PNG sprinkled in.
    I opened the inspector so I do get info when opening each image, but it a slow process.
    It seems that one image is around 70k while its twin can be up to 4Mb which is what comes unedited from my camera. Sometimes there will be 3 or 4 identical images in finder, but when I open iPhoto to see what ‘s really in the file, I find only one image, and it’s full sized.
    Are all these extra images, even if they are aliases, taking up space on my drive? And should I delete them? The info bar says I have over 10,000 images, which is rather a lot  for what I do.
    I am unable to add the file size on the view menu as it is grayed out. Don’t know why it’s gray, but having that info on the screen would save a lot of time and fiddling with each image.
    I am trying to resize selected pix so I can upload them to e-bay, which requires less than 70k. I have looked at resizing programs but most are for PC platform and not Mac, so I am trying to resize in the finder window under tools. Tedious at best. Any suggestions will be appreciated
    Thanks for your help,
    jeanfromwilsonville

  • How do I get map info? All I get is a blank grid.

    When starting the maps app the only thing that shows up is a grid.In all three (3) views there is not a thing that shows up except for the pin that marks the current posistion.

    I have never used that, so I haven't been through the steps. Here's the original:
    eMac Consulting | Joe Streno | Downgrade iTunes 11 to iTunes 10.7.
    According to my check on it just now the author is outlining a newer procedure involving the use of Pacifist 3.0.10.
    I would not have expected App Zapper to be able to uninstall software that had been installed before App Zapper was installed.

  • When I read page one on email on Iphone5 then go to next page I keep getting dictionary info from all countries

    How to delete unwanted dictionary information that keeps coming up when I start to read my emails on iphone 5

    Disable the Skype extension for Firefox - both versions if you really have two versions installed.

  • How to get a poster or preview image for my flv file

    I am trying to find out how I can get a static image to show in my flvplayer before someone presses the play button to view the video.
    Details:
    I am brand new to flash, videos, .flv files, flash players, etc. I am very experienced with Dreamweaver, however.
    I had a DVD video. I converted it from DVD to a .flv file. In Dreamweaver, I inserted the .flv file into my web page using Insert - FLV. It added the nifty little flv player with the skins. Everything is working perfectly, except prior to the user clicking play, the video shows just a black screen. I'd like to replace that with a placeholder image (poster image??).
    Here is the page: http://ilovestraightteeth.webscapersites.com/treatments/incognito-braces.shtml
    Is there simply a parameter I add to the object/ embed code? Or do I need to edit the video? Or otherwise? Any help would be appreciated, I'm being bounced from one forum to the next all over the place.
    I've got the adobe cs4 suite, if that information is helpful/relevant. Thanks in advance.

    Thanks, Nancy - that definitely helped! But -- again, I'm totally new to this, so another probably silly question....
    I followed the tutorial and totally got all of that, was able to add my poster frame, tested it, it all worked great. But now my video is in a .fla file; the option to export to FLV is not there. I need to get the video onto my web page now. So I tried exporting it as a .swf file, and then returned to Dreamweaver to insert the .swf file onto the page. I did an insert - SWF, the placeholder showed up, but when I tried to preview, I only got a blank white screen. I went to the Dreamweaver help files to see if I inserted it wrong, but I followed step by step and did it just as it said. (incidentally, a few days ago I tried insterting a different SWF file and the same thing happened).
    (a) do you know why my SWF file is not showing up/previewing?
    (b) is there a different file format I should have exported after I finished the tutorial for adding the poster image, when I had the functional .fla file?
    Thanks again. I really appreciate the response.

  • All images blurry on SWF file

    Hello All,
    I'm creating a web based video that shows our clients how to
    use our application. Every now and then when i publish the video
    the SWF file becomes blurry, however the HTML file is fine. Has
    anyone else had / have this issue and know how to fix this?

    Hi again
    Perhaps you have just been lucky to this point? This is just
    one main difference between what Flash would create VS what
    Captivate creates. Flash typically produces vector based output.
    Vector based output consists of instructions that advise the
    computer how to draw objects. Because of this, they are crystal
    clear at any size or resolution.
    Captivate creates bitmapped images. With bitmapped images, if
    you shrink or scale them smaller, the picture elements (pixels)
    begin overlapping. The computer has to calculate new color values
    to use where the overlaps occur. If you make them larger, you
    create blank pixels and the computer again has to calculate new
    color values to insert into the blank pixels. Either way, the image
    fidelity suffers as a result.
    There is no magick wand I'm afraid. If you have been getting
    by with it for a while, it's possible that you simply haven't
    noticed the degradation. Some images scale better than others.
    Cheers... Rick

  • Get-Content not grabbing all machines in a text file

    Good Afternoon,
    I am running a script that I found on another page to determine if a particular service is running on multiple computers.  
    I am testing this for future use.
    Here is the syntax in the ps1 file:
    $computers = Get-Content -Path C:\Temp\serverstest.txt
    Get-Service -ComputerName $computers -Name "Service Name" | Select Name, MachineName, Status
    The text file has five server names in it.  There are no spaces at the end of the name or extra lines after the last one. The script will run but it only returns the first server in the text file. Here is what the text file looks like
    The output is this:
    Name                                       Machine Name           
    Status
    ccmexec                                   cmgrtstqw1               
    Running
    That is all that is returned.  It does not look like it is grabbing all the servers in the list to report against.
    I figure I either mistyped something or goofed it somehow.
    Thoughts or suggestions.
    PS...I have to say that I have found the Scripting Guys Forum IMMENSELY helpful in understanding Powershell....Thanks

    Hi,
    Looks like this is a PS 2.0 thing. Try this instead:
    Get-Content .\pcList.txt | ForEach {
    Get-Service -ComputerName $_ -Name 'CcmExec' | Select Name, MachineName, Status
    Don't retire TechNet! -
    (Don't give up yet - 12,700+ strong and growing)

  • Can we get put info from database to excel and download file?

    I want to pull specific information from the database and then put it in an excel file. I want to then be able to download that file from a jsp page at the click of a button/link.
    Can someone give an idea about how this can be done.. If you can show some code that would be very useful.

    Well I think the easiest way to do this would be to use JNDI and write a simple VB app or something to use excel (of course the downside of this is that it ties you to winblows).
    The only reason I say this is simpliest is because there are no real good ways to create and xls file through java. I think there are some third party libraries out there for this but not sure where they are or how to use them.

Maybe you are looking for

  • Transfer of SC into PO in Extended classic scenario

    Hi Can anybody provide me with the ABAP call stack ( I mean the program logic) on how the SC is converted to PO and transferred to the R/3 system in the case of extended classic scenario. I know that the SC after the approval process is over a method

  • Printing in preview

    When trying to print in preview or when copying some text from an internet site and pasting in word, the print preview records two separate images of the same item and then prints them one over the other, resulting in a complete mess. My canon ip5000

  • Datafield includes parent node

    I am confused. I have a datagrid like always. The dataprovider is my xmllistcollection, I have done this many times. the datagridcolumn in question is <mx:DataGridColumn dataField="Botanical_Name"/> The data in the xml is: <Botanical_Name> <em>Dianth

  • Different CPU reading on cpufreq

    dual core processor normally runs at 2.20 GHz. it's on a thinkpad T61 so when it's not plugged in i like to set: cpufreq-set -g ondemand. which is supposed to make both processors run at 0.8 GHz, then scale up accordingly. but when i run it, it sets

  • Getting Error opening pdf's in Safari and Firefox.

    Getting the following message when I try to open a pdf from Safari and Firefox. The file downloads ok and if I click on the file it opens in Adobe Reader. This is on my iMac and also my Macbook Pro. It use to work, but not sure what has happened. If