Edit Metadata inside Illustrator

Can anyone please tell me how to edit the XMP Packet, while inside of Illustrator, without using FileInfo?   I am writing a Flex PatchPanel Extension, so need access to some DOM parameter like XMPString to change the packet.  XMPString does not say it is READ ONLY in the reference manual -- but does not let me change it -- unless I am doing something wrong.
Thanks for any suggestion.

For my setup I have an external program that saves an xmp packet (not rdf) to a file. Using a script in Ilustrator I then read that packet and append it to the active documents existing xmp using XMPFile and XMPUtils. The updated xmp is then saved to the active document using XMPFile and putXmp.
You should be able to skip the external xmp file part and use the setProperty() method directly on a copy of the active documents xmp and then save that back to the .ai file.
Here's a simplified (and working) example as it's easier to explain with code:
// Load the XMP Script library
if( xmpLib == undefined ) {
var xmpLib = new ExternalObject("lib:../../Frameworks/AdobeXMPScript");
app.synchronousMode = true;
//Create an XMPMeta object from the active documents XMPString:
var docXmp = new XMPMeta(app.activeDocument.XMPString);
//Make a copy that we can work with:
var myXmp = docXmp;
//Make our changes:
myXmp.setProperty(XMPConst.NS_XMP, "CreatorTool", "My Script");
//Append the modified xmp to the original xmp object:
XMPUtils.appendProperties(myXmp, docXmp, XMPConst.APPEND_REPLACE_OLD_VALUES);
//Create a File object of the active document so we can use .fsName (XMPFile seems to be picky):
var myDocFile = new File(app.activeDocument.fullName);
//Open the active document for writing:
var docRef = new XMPFile(myDocFile.fsName, XMPConst.FILE_UNKNOWN, XMPConst.OPEN_FOR_UPDATE);
//Check that we can write the xmp before writing it
if (docRef.canPutXMP(docXmp)) { docRef.putXMP(docXmp); }
//Save the active document (user will have to re-open file to see updated xmp in file info panel)
docRef.closeFile(XMPConst.CLOSE_UPDATE_SAFELY);
Most of what I've learned about the xmp library came from the following pdf so if you haven't already you should check it out:
http://www.adobe.com/devnet/scripting/estk/pdfs/javascript_tools_guide_cs3.pdf
HTH.

Similar Messages

  • Include Develop settings in metadata inside JPEG, TIFF, and PSD files ignored when unchecked

    In the Catalog Settings under the Metadata tab, I have unchecked the option 'Include Develop settings in metadata inside JPEG, TIFF and PSD files'.
    I then selected a JPEG photograph in the Library module and chose Metadata/Save Metatdata to File.  I wanted to save the metadata that I had added (keywords, IPTC, rating, etc), but not the develop settings.
    I then imported the jpeg back into another catalog.  The metadata I had added was there as expected, but so are the develop settings.  This I did not expect or want.
    Have I got something wrong here?  My understanding is that turning off the 'Include Develop settings in metadata inside JPEG, TIFF and PSD files' option means that develop settings are not written to the xmp area in non raw files such as jpegs.
    Looks like a bug to me.
    Tony

    Hello all,
    I have investigated this problem further and now have the answer.  It is not that the option "Include Develop settings in metadata inside JPEG, TIFF, and PSD files" is ignored, but it appears that the LR catalog is not properly updated when this option is turned off.
    Here are steps to test and illustrate the problem:
    1. Create a new folder and place a copy of an original jpeg image (original from camera) in the new folder.  Make sure you keep the original safe and only work on copies.
    2. Create a new catalog in Lightroom 2.3.
    3. Import the jpeg image from the new folder.
    4. Add some metadata (keywords, ratings, title, caption, IPTC data, etc).
    5. Make some Develop adjustments to the image.
    6. Open "Catalogue Settings" from the Edit menu and check (enable) the option "Include Develop settings in metadata inside JPEG, TIFF, and PSD files".  Uncheck (disable)  the "Automatically write changes into XMP" option.
    7. Select "Save Metadata to File".
    8. Delete the jpeg image from the Library module, then re-import it.
    9. Copy the original image back to the new folder, replacing the updated jpeg (once again, the jpeg image now contains no metadata from Lightroom).  At this stage, Lightroom fails to recognize that the metadata in the LR catalog doesn’t match the metadata content in the jpeg file.  I would have though that it should.
    10. Open "Catalogue Settings" from the Edit menu and uncheck (turn off) the option "Include Develop settings in metadata inside JPEG, TIFF, and PSD files".
    11. Reset the Develop settings.
    12. You now need to make a change to the metadata like increase or decrease the rating (otherwise LR won’t save any metadata to the jpeg file - LR is being too smart and thinks it’s already up to date, so does nothing when you do the next step).
    12. Select "Save Metadata to File".
    13. Delete the jpeg image from the Library module again, then re-import it again.
    14. Look at the develop settings (that you specifically did not want saved within the jpeg file in step 10).
    Although the Develop settings were Reset in step 11, you have ended up with the original Develop settings from step 5.  It is true that LR has not saved the reset develop settings, but it also hasn’t removed the old develop settings that are still stored in the catalog.  This must be considered a bug (oversight).  Note that it has also saved an Import snapshot as well.
    For the more technically minded (and the LR developers if you are listening), the field "xmp" in the table "Adobe_AdditionalMetadata" is not updated (old camera raw settings and snapshot settings are left behind) when the "Include Develop settings in metadata inside JPEG, TIFF, and PSD files" option is unchecked (disabled) and it seems that this is the data that is written to the jpeg file when you select "Save Metadata to File".  Note that the state of "Automatically write changes into XMP" has not effect on this process - I tried it on and off.
    Hope that this might be of some help to others one day.
    Tony

  • Editing metadata in bridge CC

    I've used bridge to edit metadata of all my files as they are downloaded using CS4, now with CC I am having trouble. When I edit metadata and try to save it I get a message that Bridge had trouble writing to file. PS can write to file, and bridge can then see the changes, but I can't make changes in bridge where I'm use to making them to several (300+) files at a time. What am I doing wrong??

    OS permission problems are not uncommon with external drives.  Although it may sound crazy you may not be an authorized user of the drive.  A workaround is to right click on Bridge icon and choose "run as admininstrator". 
    For long term fix check ouit this old thread.  http://forums.adobe.com/thread/957401?tstart=0

  • I can't see how to edit PDF inside Portfolio for Acrobat X. In Acrobat 9 Pro

    I can't see how to edit PDF inside Portfolio for Acrobat X. I can do this in Acrobat 9 Pro with the Document pull down menu. Did they take this away in Acrobat X?

    Whether it's maxed or not doesn't make any difference.
    The bottom part of the image/scroll bar is always under the Windows taskbar any time the URL is opened.
    It is always fixed by doing something, either switching to and back from another window, or turning on and off one or more toolbars.
    That shouldn't be necessary. The bottom part should be visible when the URL is opened.

  • How can I filter to find photos NOT pinned to a map? I have 28,000 phots with many mapped and many not. The Search function does not include GPS data. I haven't found  way to search metadata inside or out of Elements.

    How can I filter to find photos NOT pinned to a map? I have 28,000 phots with many mapped and many not. The Search function does not include GPS data. I haven't found  way to search metadata inside or out of Elements.

    How can I filter to find photos NOT pinned to a map? I have 28,000 phots with many mapped and many not. The Search function does not include GPS data. I haven't found  way to search metadata inside or out of Elements.

  • Not able to edit assets in Illustrator/Photoshop and save over existing assets in Edge animation

    Not able to edit assets in Illustrator/Photoshop and save over existing assets in Edge animation to update image changes. Has Adobe changed this capability with new releases? Does this mean to update an asset on the Edge animation timeline, you have to copy and paste all the animations of that old asset over to the new imported asset?

    Hi, CamShazam-
    You should be able to save over existing assets in the images/ folder, then close and reopen the file.  The other option is to save your assets and then use the swap image option in the properties panel.  Is this what you're talking about?  Thanks,
    -Elaine

  • Editing metadata in Finder??

    can you edit metadata within finder?? I used to edit my files in Windows Explorer. I was able to edit the artist name, album, album artist, etc. all from the explorer ( Finder for Windows). But, it seems that you can't do any of that editing of file info within Finder, is there some way i can do this like i did with Windows without having to use a third party app?

    and of course the only metadata that is viewable within column view is a couple things only applicable to all file types, and you can't even customize it like in windows to include other metadata columns, that's lame as heck, and like i said get info window does no good when you are trying to view a large number of files at once, and even then the metadata is not editable within the get info window, so from what i can tell finder needs to step it up big time, don't let windows have an edge, it's such a simple thing to pull off, if windows can do it, why not mac finder, seems like they are dumbing it down just a little much in this regard

  • Editing metadata in a TIFF image

    Hi everyone,
    I'm trying to edit TIFF image metadata using ImageIO v1.1 APIs, but something goes wrong...
    For a TIFFImageWriter I get the following results:
    writer.canInsertEmpty = true
    writer.canInsertImage = true
    writer.canRemoveImage = false
    writer.canReplaceImageMetadata = false
    writer.canReplacePixels = true
    writer.canReplaceStreamMetadata = false
    writer.canWriteEmpty = true
    writer.canWriteRasters = false
    writer.canWriteSequence = trueSo editing metadata with writer.replaceImageMetadata is not possible (I verified this, an exception is thrown). I thought I could remove an entire image and reinsert it with new metadata, but as you can see writer.removeImage is unavailable, too.
    How can I edit a TIFF image without rewriting it to a totally new image file?
    Any help will be appreciated,
    Giuseppe

    Huh... I am in bitmap... OK, how would I go about changing to RGB? Not a complete novice, but never had a similar problem before.

  • Edit metadata without changing modified file date

    I'd like to use Bridge (CS4) to edit metadata in both JPEGs and RAW files, without changing the original file date/time stamp.
    Any way I can do this? Thanks.

    Thanks. I'm familiar with the file date utilities available (I've even written such a program myself), but it seems like an awkward solution.
    Since first posting this question, I discovered that I can keep my raw files untouched, by selecting Camera Raw Preferences > Save image settings > Sidecar .xmp files.
    I'd like to see a similar setting for JPEG images as well. Please?

  • What does "Include develop settings metadata inside JPEG, TIFF, and PSD files" do?

    I am wondering what the option "Include develop settings metadata inside JPEG, TIFF, and PSD files" found in catalog settings/metadata does?  what happens if you uncheck it?

    Bob12312321 wrote:
    also when this is unchecked will lightroom still save keyword changes to raw(nef) files?  thank you!
    Metadata ("real" metadata like keyowords nor develop adjustments) are never saved into non-DNG Raw files (like .nef, .cr2) directly. With these files, there is always a so called sidecar file (with the extension .xmp) created to hold the XMP information.
    And yes, if the option is unchecked, LR will save the keywords to the XMP sidecars, when you perform "Write Metadata to File" or have the autowrite option active.
    Beat

  • I want to share a folder of images with a client who is also using bridge. I want the client to be able to edit metadata and rate the image. How can I do this?

    I want to share a folder of images with a client who is also using bridge. I want the client to be able to edit metadata and rate the image. How can I do this?

    Metadata won't be a problem as long as you use Bridge to copy the file from within Bridge to whatever media (flash drive, CD/DVD. email, etc) you plan to use for the sharing.
    I'm not sure about the Label part.  Maybe it will travel along too.

  • Unable to edit metadata for some files, Bridge CS6

    I am editing metadata for .wav files, and somehow a few of them have become locked for editing. I have checked the properties for these files and still have full permissions for all users.
    As you can see in the screen capture below, the pencil icons you click to edit the metadata are gone and an error message comes up. Thanks for any help you can give!

    Wow, I just answered my own question...
    After an hour trying to figure this out, I decided to just go ahead and edit the images, but "Edit in Camera Raw" was not an option.  So, I went to Tools \ Cache \ Purge Cache for Folder "xxx"
    Problem solved.

  • Where do i find Kuler / Adobe Color inside illustrator CC 2014

    where do i find Kuler / Adobe Color inside illustrator CC 2014... i can't not find it anywhere not in extensions. Please help. Thanx!

    in illustrator CC2014 update of there days ago there is no more Kuler...
    and opening Color themes opens the good old Ku;leer that doesn't update the research by key word.
    Thank you  Gullebean and charlie544

  • Help! Installed CS4 student edition, but only Illustrator appeared!

    Hi! I recently installed the CS4 student edition, but only Illustrator appears in 'Applications.' A lot of the files associated with Photoshop and In Design are on the computer, but not the programs themselves. I wonder if this has to do with the fact I downloaded trial versions of Photoshop and In Design, but deleted them when I was ready to install CS4. They are no longer in trash.
    Thank you.

    If you deleted them by simply dragging them to the trash, then yes, that
    would explain it. Those application need to be uninstalled, not trashed.
    Bob

  • Revel date editing/metadata display feature

    The Revel app for IOS allows you to edit the date of a photo, but this feature does not seem seem to available via the Revel website, Windows 8.1 app, or Android app. Is this something that will be added soon? Also, I think there needs to be a way to edit metadata, or at least SEE it.

    I was playing with it, checking it for you on a project with one MXF HVX-200 clip and it just crashed. Haven't ever tried to change my meta data before, no need, unlike you the HVX writes it for me.
    Can't help ya man. Might be a coincidence or might be real problem.

Maybe you are looking for

  • Windows Vista & Ipod

    My old computer crashed and I purchased a new on with windows vista on it. I tried to transfer my songs purchased on itunes to the new computer from my ipod but it would only transfer a little more than half of them and it won't allow me to add my ju

  • Can't open file in ApEx

    We have two applications, one is written using Forms6i, in this application (Forms6i) the users is given the facility to save files in a database table with a Long Raw type field. This is working fine. The other application is written in ApEx, which

  • Differences in sort order between iTunes and iPod

    Can someone explain how the sort order of artists / albums works? It seems that it is different between iTunes and the iPod. In iTunes (7.3.1) I can enter data in the fields for Artist, Album Artist, Sort Artist and Sort Album Artist. When I get the

  • Number   to words

    hi, i want to convert amount in number format to amount in words i got some code but those codes are not in good standard ie for 123 i need one hundred and twenty three only.. please help

  • Problem in FileUpload UI element

    Hi All,        I have done all the operations that are there in this lilnk of FileUpload UI element and I am giving the link also https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f5d3c40a-0801-0010-55b7-9e3b01745a40 Here, Web