Read metadata of placed image (CS4-Applescript)

Is it possible to read the metadata (description field, ...) of a placed image using CS4 & Applescript, and what is the syntax?
Thanks,
Peter

Hello all,
It looks like it has been a while since this thread was active, however I thought I'd give it a shot.
I'm trying to do the same thing as the OP. But specifically I'm trying to capture the InstanceID from the Media Management Schema.
xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/"
            xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#">
         <xmpMM:OriginalDocumentID>xmp.did:2C9BA0F20F2068118B12C50AA55392B0</xmpMM:OriginalDocumen tID>
         <xmpMM:DocumentID>xmp.did:2C9BA0F20F2068118B12C50AA55392B0</xmpMM:DocumentID>
         <xmpMM:InstanceID>xmp.iid:E324D45D2A2068118F62CC41CFB88906</xmpMM:InstanceID>
         <xmpMM:PreservedFileName>TKTKTKTK.dng</xmpMM:PreservedFileName>
I'm using Indesign CS5, and looking in the AppleScript Dictionary, I see:
get property v : Gets the XMP property value associated with the specified path.
get property link metadata
namespace text : The namespace of the property.
path text : The specified path.
→ text : The associated property value.
But, I can't work out the syntax. Any help would be appreciated.
My end goal is to harvest the Instance IDs and then form them into a search query for a DAM.
Many thanks.
-Andrew Mannone
EDIT: I figured out the syntax:
tell application "Adobe InDesign CS5"
          tell document 1
                    tell links
                              set linkInstanceIDList to get property link xmp namespace "http://ns.adobe.com/xap/1.0/mm/" path "InstanceID"
                    end tell
          end tell
end tell
Message was edited by: Andrew Mannone

Similar Messages

  • Reading metadata to - from image files

    I am using Creative Suite CS4.  In CS3 I created two custom XMP metadata pages that I used to add information to RAW, TIF, PSD files.  The resulting custom panel could be seen and used in Bridge and Extensis Portfolio.  In CS4 that all changed.  I can create the GUI part of the panel using Flex Builder 3.
    My questions are 1) How do you get the controls to work (combo boxes with fixed lists, fields for text data and a note field), 2) how do I get the data from the image file, have it update when a field changes, read it back to the image file when closed, and 3) how do I get it to work in Bridge CS4 properly and also be readable to Extensis Portfolio.
    I have attached the CS3 files that were used to create the panels in CS3.
    Fred

    I am using Creative Suite CS4.  In CS3 I created two custom XMP metadata pages that I used to add information to RAW, TIF, PSD files.  The resulting custom panel could be seen and used in Bridge and Extensis Portfolio.  In CS4 that all changed.  I can create the GUI part of the panel using Flex Builder 3.
    My questions are 1) How do you get the controls to work (combo boxes with fixed lists, fields for text data and a note field), 2) how do I get the data from the image file, have it update when a field changes, read it back to the image file when closed, and 3) how do I get it to work in Bridge CS4 properly and also be readable to Extensis Portfolio.
    I have attached the CS3 files that were used to create the panels in CS3.
    Fred

  • Reading metadata of a JPEG image

    Hi,
    I am trying to read the metadata of an image taken from mobile.
    how can i extract the thumbnail from the metadata?
    I will be receiving the image as bytearray from client.
    Thanks & Regards,
    Sairam

    http://www.drewnoakes.com/code/exif/

  • Difference between CS3 and CS4 when placing images, percentage not kept

    There is some kind of difference between CS3 and CS4 when placing images. The images I've dealt with right now were vector images but it might apply to all kinds of images.
    When replacing an existing image, the CS4 behaviour is to let the image fill up the frame. In CS3 the percentage was set to 100% as default (the % you see when selecting the image, not the container).
    Also when replacing an impage in CS4, the "inner" image frame is kept, while in C3, the percentage was kept.
    Is there some kind of placement preferences / settings to let CS4 act the same wat as CS3 did, when placing an image?
    -- Andreas

    Yes, the behavior was changed in CS4 (and many users, like me, prefer the new system).
    If you click and drag a loaded image place cursor the entire image will be be scaled to fit the proportionally drawn frame -- a huge timesaver if you mostly place uncropped art. If you want 100% of the image at 100% scale, just click and release -- same as before, or as before you can pre-draw a frame and place into it and your image will come in cropped at 100% (unless you've changed the fitting options for the frame before placing).
    Peter

  • 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.

  • Script to report on placed images

    Does anyone know of a script to trawl through folders of files - or a single file and I'll adapt - and report on the placed images, whether they are embedded or linked.
    AppleScript preferable, but JavaScript very much welcome.
    Thanks in advanced.
    RegardsCraig.

    Sorry in advance for the javascript.  How about something like:
    app.linkstotal = 0
    for (i=0;app.Documents.length;i++) {
    document = app.Documents[i];
    linkeditems = document.placedItems.length;
    if (linkeditems > 0) {
       app.linkstotal = app.linkstotal + linkeditems;
       alertmessage = "Document " + document.name + "contains " + linkeditems + "linked files.";
       alert(alertmessage);
    alertmessage = "Files contain " + app.linkstotal + "linked files.";
    alert(alertmessage);
    Embedded images aren't counted as placedItems.  This script only reads open documents, but you could modify it to open and check each file in a directory.  Also, it would probably be best to feed that alert message to an output file instead of popping one up for each file.
    Does that help at all?

  • How can i NOT include top level keyword in the metadata of an image?

    Hello,
    I want to know how can i NOT include top level keyword in the metadata of an image. I know there is an option for not applying a keyword to an exported image, but is there an option for not applying the top level keyword to the actual image?
    I have organized my geographical (by location) keywords like this:
    Places
    USA
    New York
    Miami
    Spain.
    If i add geographical keywords to all my images, all my images will have the keyword "Places", i dont think that it have any sence to have all your images with one keyword. How can i fix this? Any sugestion? i will appreciate it a lot any help or information that you could give me.
    Excuse my english, i know it is not good. I hope that you could understand me.
    Thanks,
    Marcelo :)

    Explicitly excluding a keyword only applies when "exporting". Unfortunately, there's currently no way to stop the keyword being written to the file when "Save Metadata to File" command is used. The natural reaction of users to this difference is to suggest that it is stupid. Nevertheless, there are good reasons why the difference exists:
    1. "Export" creates a new file whereas "Save Metadata to File" writes the metadata back into the existing file.
    2. There are very good reasons why certain keywords should not be written to file, and the example given in the OP is one. Saving metadata to file is more often used as means of backing up important image related metadata, independently of the catalog or allowing the metadata to be visible in other aplications. It would be rare that such a file would be shared with a third party, so the reason for not including certain keywords is less obvious. Actually, not including it can result in no end of confusion and grief. For example, if the top level (or any keyword) was excluded during the save metadata process then the other keywords would be orphaned when image is imported back into the catalog (e.g. buiding a new catalog).
    The development team are aware of the need, in some circumstances, to exclude certain keywords when save metadata command is used. How and when the issue is resolved, without adding even more confusion/complexity, is some way off.

  • How to find out the Pixel Dimensions and Document Size of placed images?

    Is it possible to find out the placed image details like Pixel Dimensions(Width,Height) Document Size(Width,Height) in illustrator through scripting. Kindly advice me with some examples.

    http://www.adobeforums.com/webx/.3bbaa316.59b84fd8
    I hope the snippet therein will get you started.
    But after all, when you place an image via pi=layer.placedItems.add() it should pop in with its default dimensions, so that you have pi.height and pi.width ready.
    Is this what you are aiming at?

  • Read metadata for a file without Photoshop or Bridge

    Hi
    Suppose I have a file in desktop called "test.jpg". So I create this variable:
    var myFile = new File ("~/Desktop/test.jpg");
    This file has some keywords and instructions I need to read. And if the reading process finds the correct keyword, then it copies the file to the appropriated folder. Well, in resume, I could do everything directlly using #target estoolkit. I´d not like to involve (opening) Photoshop or Bridge.
    Is it possible to read the metadata of a file without targetting Bridge or Photoshop? Reading the reference I did not find any method or property for this, expect for the metadata library. BUT
    If I try to load the metadata library using:
    if (ExternalObject.AdobeXMPScript == undefined) {
            ExternalObject.AdobeXMPScript = new ExternalObject('lib:AdobeXMPScript');
    then it sure will returns an error file or folder does not exists..
    Any idea how I could proceed to load this library and read the metadata of a file directlly?
    Thank you very much
    Best Regards
    Gustavo.

    Hi friends
    Thank you very much for your inputs. Muppet....what do you mean when you write The modified date gets bumped and can be a PITA? What means "PITA"?
    So, if it´s impossible to invoke [directly] the default library without targetting Bridge or Photoshop...I´ll simplify the things and use Bridge to house the script. No problem.
    So, look at what I´m doing:
    #target bridge
    if (ExternalObject.AdobeXMPScript == undefined) {
            ExternalObject.AdobeXMPScript = new ExternalObject('lib:AdobeXMPScript');
    var test = new File ("~/Desktop/Test.jpg");
    var xmp = test.metadata;
    alert(xmp);
    ...But, the alert in Adobe Bridge is returning nothing (""). And I know this image exists and it has metadata.
    I remember to use metadata for reading the currently selected image in Content panel of Bridge (and it worked), but never tried direrctly declaring a file and reading this way.
    Am I missing anything obvious?
    Thank you very much
    Gustavo.
    Message was edited by: Gustavo Del Vechio

  • HT3275 I'm receiving an error message that reads "The backup disk image '/Volumes/Data/my name's iMAC.sparesebundle" is already in use.  The time capsule is not backing up any files.

    The Time Machine is not completing thte backup to my Time Capsule.  I am receiving a message which reads "The backup disk image "/Volumes/Data/Mac Jet's iMAC.sparsebundle" is already in use."  I cannot locate the source of the problem or what steps need to be taken to get the Time Capsule operating.

    Hi, see if it shows here...
    In Finder's Menu, select Go menu>Go to Folder, and go to "/volumes". (no quotes)
    Volumes is where an alias to your hard drive ("/" at boot) is placed at startup, and where all the "mount points" for auxiliary drives are created for you to access them. This folder is normally hidden from view.
    Drives with an extra 1 on the end have a side-effect of mounting a drive with the same name as the system already think exists. Try trashing the duplicates with a 1 or 2 if there are no real files in them, and reboot.
    If it does contain data...
    http://support.apple.com/kb/TS2474

  • Grid View: Flags, Rating, Color Label read only? / Mark Images Read only?

    Hi
    I'd like to see the flag-status, rating and color label assigned to an image as cell icons. But if I show them as Cell Icons, I am also able to change them, which happens to me quite often accidentally when I click into the frame of a image to change selections.
    Is it possible to show these markers for each image without being able to change them in the frame? I would be quite happy being able to change them from the tool bar, but still being able to see them on the single image.
    Related to this:
    Is it somehow possible to mark images as read only, so that further changes (development, metadata etc.) can be made impossible? This would be nice for older images, which have been processed completely and should stay that way, inhibiting accidental changes to images. Sometimes it is difficult to even notice when one accidentally changes metadata on an image.
    Thanks for your thoughts
    Beat Gossweiler
    Switzerland

    Yes it's a bug. I see it on Mac platform.

  • How do I align a placed image in a frame using JS?

    I am new both to javascript and to scripting for InDesign, so please bear with me on this question.
    I am trying to align an image in a graphic frame so it aligns to the top right corner of the frame.
    I can do this using the InDesign interface by following these steps:
    1. Create a rectangular frame.
    2. Right-clicking the frame and selecting "Fitting > Frame Fitting Options."
    3. Selecting the top-right square in the "Alignment" area of the Frame Fitting Options dialogue.
    For me, this automatically aligns the image to the top right corner in the selected text frame, even if there is a placed item in the frame.
    I am trying to apply this to the actual image frame using the following code where "modelFrame" is the rectangle that is the parent of the placed image:
              modelFrame.frameFittingOptions.fittingAlignment.anchorPoint = AnchorPoint.TOP_RIGHT_ANCHOR;
    I am not getting an error, but I am also not getting the desired results (in fact, it doesn't change anythign at all). What am I doing wrong?

    Hi lanejd,
    I have got the same issue as you but had just found the solution. Please see below:
    modelFrame.frameFittingOptions.fittingAlignment.anchorPoint = AnchorPoint.TOP_RIGHT_ANCHOR;
    This will only set the properties for the Frame Fitting Options. You will need to call a method/function. Add the below line to your script and it will execute the Frame fitting Options.
    modelFrame.fit(FitOptions.applyFrameFittingOptions);
    Hope this help!

  • My InDesign program is printing my placed images lighter than illustrator.

    I am trying to print a colour logo in Indesign with black type on my inkjet printer.  The colours are appearing fine on screen and so is the black but when I print everything is washed out.  I tried just printing a black box and it appears black on screen but in print it is grey.  I have tried changing the preferences Appearance of Black to rich and accurate but that did not make a difference.  Do I need to do anything in color management I am using Indesign CS2.  How can I solve this problem?

    Acrobat worked, thanks for that advice.   I set my Convert to Profile under the Edit Menu to  Color
    Match RGB.  That helped a little bit but it is not printing like the
    pdf.  I would like to get this problem resolved. I normally use
    illustrator most of my work.  But I would like to have InDesign working
    properly as I need it to do other jobs.
    Take Care,
    Jen
    Take Care,
    Jen
    Date: Fri, 14 Aug 2009 14:24:47 -0600
    From: [email protected]
    To: [email protected]
    Subject: My InDesign program is printing my placed images lighter than illustrator.
    Jen,
    This is a problem that you have no time to fool with, correct?
    When printing from InDesign and all looks hopeless, export to PDF and print from the PDF.
    Why?
    I don't know for sure but it seems all printers made recently accept PDF better than straight from InDesign. It could be the printer driver and it could be InDesign but you don't have time to mess with it now. Wait for some free time to sort it out, but for now output to PDF and print from Adobe Reader or Acrobat.
    >

  • Create Pattern Swatch from Placed Image in Javascript

    I need to create a large number of pattern swatches from some .jpg file on disk. I've figured out how to script the insertion of the .jpgs into my AI document as placed images:
         // Embed the image into the document.
         file = new File("MyImage.jpg");
         var document = app.activeDocument;
         var newPlaced = document.layers["swatches"].groupItems.createFromFile(file);
         newPlaced.name = "MyImage_Placed";
    This works fine and the item shows up in the correct layer as an embedded image.
    Now I want to create a PatternSwatch (I think) from that Image.
    To create a new swatch the code starts out as:
         newSwatch = document.swatches.add();
         newSwatch.name = "MyImage_Swatch";
    but now I'm stuck! How do I associate the new PlacedItem with the swatch I just created? I can see the swatch in the palette so I'm partway there.

    When you say you would drag the image itself into the Swatch Palette and it would show the image itself? How would then use this swatch? Can you give an example of what you would apply a jpeg to as a swatch? The only palette that I can think of off the top of my head that you can drag a jpeg into and have the icon appear as the jpeg is the Symbols Palette. Is is possible that you were using the Symbols Palette in the past and not the Swatch Palette?

  • InDesign Crashes while placing images on document.

    Hi All,
    I am facing problem and i am stuck at this point.
    I download an image in a folder and place it in graphic box using IImportExportFacade's ImportAndLoadPlaceGun method it is working fine, but when i delete placed image from folder then it becomes as missing link after that if I download the same image at same path and try to place in another graphic box using same above API then indesign get crashed.
    What is problem Any idea?
    Please help me if anyone having same isuue i need to fix it urget.
    Thanks in advance.
    Regards
    Tahir.

    Does it happen in other files withthe same image(s)? How about in a new user?

Maybe you are looking for

  • Import my site from mobileMe

    Hi, I recently installed SnowLeopard and I did a clean install. Before so, I confirmed that my website was stored on my iDisk and not on my computer. My site was made using iLife '08 and now I upgraded to iLife '09. Now I can't find a way to re-open

  • Pacific Home purchase points missing

    Hi, I bought a samsung oven from pacific home over 2 months ago and my points still didn't post although I used my BB credit card. At the time of the purchase, I asked the Pacific Home employee 3 times and he assured me they will be added. I tried to

  • USB disc and airport extreme

    time machine does not recognize my usb disc attached to my airport extreme?? any help or solutions would be appreciated.

  • Rdb ODBC 3.3.2.4 Driver

    Hi, I've found the release notes for the Rdb ODBC 3.3.2.4 driver, but I can't find the download link. The only Rdb ODBC driver I can find is 3.3.2.0 which was last updated in June of 2010. Can anyone point me towards the 3.3.2.4 driver? Thanks, Sean

  • Newbie - First Project with SAP Team... Monitoring Solutions/Strategy?

    I just started my first job out of school two weeks ago. My first project is to work on a "monitoring strategy" for our large SAP enterprise system. We have CRM, SRM, ERP, Sol Man, EDOS, XI, etc... I am supposed to dig into each of these portions of