Problems writing metadata.

Just when I thought I had this working i was wrong. What is happening is I have a custom schema loaded on one file. If i load it on that one file Indesign remembers it and my script works fine. If it is not loaded things go wrong. I need this to happen through the script not loading from inDesign.
Heres the basics.
var myDocument=app.activeDocument;
var myJobNum=myDocument.name.slice(0,5);
var myPoo=myDocument.metadataPreferences;
with (myPoo){
            if (ExternalObject.AdobeXMPScript == undefined) {
            ExternalObject.AdobeXMPScript = new
            ExternalObject("lib:AdobeXMPScript");
            xmp = new XMPMeta();
            var myNewColor=setProperty("http://www.hjedesign.com/metadata/1.0/", "color", selectedColor,);
            var myNewYear=setProperty("http://www.hjedesign.com/metadata/1.0/", "year",  selectedYear,);
            var myNewSize=setProperty("http://www.hjedesign.com/metadata/1.0/", "trimSize", selectedSize,);
            var myNewSize=setProperty("http://www.hjedesign.com/metadata/1.0/", "specialInstructions", selectedInst,);
wich work fine when that custom schema has been loaded but does not work at all if i don't. If i try to setProperty it tells me i have and unregistered schema.

Check out this article:
http://tomaxxi.com/2010/09/storing-custom-data-into-indesign-file-xmp/
Hope that helps.
Marijan (tomaxxi)
http://tomaxxi.com

Similar Messages

  • Problems writing metadata in Bridge CS4

    Anyone seeing this? When I add metadata to my RAW images in Bridge, I frequently get an "Error writing metadata" message. If I have selected a folder full of images, say 700 images, I get 700 error messages. The only option is to force quit.
    The problem seems to happen reliably if thumbnails or preview images are still being created, though I've had it happen with a stable folder.
    Another consequence of the force quit under these circumstances is that I lose all my image adjustments on my raw files. It seems the sidecar .xml files get corrupted.
    I'm on Mac 10.4.11, and the problem happens on both the desktop and the laptop.

    That explains why the problem is worse on the laptop. Here's what I have in the deesktop Mac Pro, which is only 15 months old:
    ATI Radeon X1900 XT:
    Chipset Model: ATY,RadeonX1900
    Type: Display
    Bus: PCIe
    Slot: Slot-1
    PCIe Lane Width: x16
    VRAM (Total): 512 MB
    Vendor: ATI (0x1002)
    Device ID: 0x7249
    Revision ID: 0x0000
    ROM Revision: 113-A52027-140
    EFI Driver Version: 01.00.140

  • Problem writing metadata to Jpegs originating from Macs

    Everything works great when trying to write metadata to a JPEG that originates from a PC. But since my company runs a website, we have to be able to handle JPEGs that come from Macs. I've run across an issue where trying to write metadata to a Mac-JEPG causes an error.
    Specifically it occurs in TIFF_MemoryReader::ParseMemoryStream(*), where the code tries to find the tnailIFDOffset value. For PC-JPEGs, it returns a sensible value, but with Mac-JPEGS, the value is 0x65005020. Which is clearly beyond the image size.
    The result being that no metadata is saved to the image. A workaround is to download the image, open in a PC Photoshop, and try again with that new image. This suggests the problem is in the file structure of Mac-JPEGs.
    Does the toolkit support these images? Is there a better code-centric workaround? Do I have to re-encode the image to PC format before I use the toolkit?

    Hi,
    I have just started working with XMP data manipulation using XMP toolkit.
    I am able to read and update XMP data successfully, but not getting an idea to write back to JPEG file.
    Is there any API in XMP Toolkit to perform this task?
    If not, Please give me some guidelines for this....
    Thanks.

  • Problems writing metadata in bridge

    hi all,
    we are using mobile users on OD with 10.6.6 and 10.6.7 clients.
    in bridge CS5 on a mounted afp volume some users can add metadata and rating to pictures, others can't.
    i tried all thinkable ways:
    user A, AFP mount as user A = works
    User B, AFP mount as user B = fail
    User A, AFP mount as user B = works
    User B, AFP mount as user A = fail
    the AFP share comes from a Solaris ZFS pool, ACLs are correct, both users can modify files in finder or photoshop, indesign - you name it - no problem.
    i already deleted the cache files of the users, the plist, even tried a totally new mac pro. i deleted the .BridgeCacheT files and verified, that the bridge cache path is writeable for the users.
    nothing.
    is there any way to raise the logging level of bridge or force it to give any debug messages? it simply sits there and says nothing.
    thanks in advance.
    michael

    Bridge is not designed for use over a network, there are a lot of threads in the archive of this forum about this subject. Check also Google for the 'Image Archivist". This guy has a blog and did succeed in use over network but it needs a lot of discipline...

  • Faillure writing metadata to some DNG files

    I'm having a problem writing metadata to some dng files using Lightroom 2.6.1. When I try to apply a metadata template to a batch of files most of them get changes but a few don't. This only effects DNG files so far JPEG and TIFF seem to be OK. I have tried running the problem files through DNG converter and the new files have the same problem. Lightroom won't write to them.
    I can change the metadata of these files from Bridge. The changes then appear properly in Lightroom. Afterwards I can change the metadata again from Lightroom.
    I'm working on a MacBook Pro (Late 2008) and running OS 10.6.2.

    I created a preset to export to same folder as original, same format as original, and stack with (above) original. I used this on the seven files, and it has solved the problem without losing any metadata.
    The jpegs had at some point been processed by Photoshop Elements as they were imported/edited using that application in 2010 but the metadata problem didn't show up until recently when I was making some adjustments in Lightroom. I somehow think this may be related to the GPS tag though I don't have sufficient evidence.
    The DNG file was strange in that it was straight the camera with no Lightroom adjustments, although I did add GPS info in the Map module. Anway it is now fixed as well as the jpegs.
    With this preset it would be possible quickly to fix a large number of image files. Just create a Smart Collection to display the problem files and run the preset on them all in one go. The only things that I am aware of that you would need to look out for are (1) if they are in a collection other than a smart collection, or have been published to a service like Flickr or to the Hard Disk the link will be broken, and (2) If you like to sort photos by date/time added, they will be out of the sequence (capture time is fine).
    When you are satisfied that this has worked OK then you can delete the images from the "Metadata Not Up To Date" smart collection. Select all, go to all photos, they should remain selected and press Delete. You could do a thousand in one go if you have the nerve for it
    Hope this helps.
    Peter

  • Error writing metadata to file

    I am getting constant error messages from Bridge CS4 when trying to add keywords to my images "Error Writing Metadata to file "XXXX". It's very annoying and destroying my workflow. I have tried resetting original preferences, and using purge cashe. Finally I reorganized my entire folder structure which seemed to make the problem less frequent.
    The circumstance that makes this error pop up most frequently is when I add keywords to a handful of files that already have another keyword assigned. Quitting the folder and then re-entering it solves the problem for the photos with the current error, but then 20 or so photos later I get the error message again.
    Any Fixes?

    A new suspicion was that the read/write data might be different for the images files themselves than it was for the folder holding them. So I applied the read/write permission to the image files themselves. No luck though. Still getting "Error writing metadata to file xxxx" Errors. Would love to be spending all this time editing photos instead of chasing down bugs. Brand new MacBook Pro and I'm spending more time trying to fix errors than using the software. ::sigh::

  • Error writing metadata to any file except jpegs

    Hi all,
    A coworker and I have been assigned the job of keywording all the photos in our database. We aren't photographers and are only messing with the keyword metadata on the photos.
    But we've been having a consistent problem with Bridge CS4. When I attempt to add keywords to any file format except jpeg, it gives me an error message "Error writing metadata to " and the filename. Then to make matters even worse, Bridge continues trying to add the metadata to the same images over and over again until I do a forced shutdown.
    We're running Bridge on a network with exported cache. The only thing I have found as a possible solution is a permissions setting problem, but I can't find any way to check on that.
    Any help you can offer would be great. Thanks!

    I had this same problem. This was the solution for me in my CS4.
    Go to Bridge
    Go to Preferences
    Go to Metadata
    Make sure IPTC and Keywords are checked.
    This will allow you to add keywords to your metadata in bridge.
    Here it is not checked:
    Here it is checked:

  • Errors when writing metadata to files on Windows Server

    Good day!
    I have an iMac running OSX 10.9 (Maverick) and Lightroom 5.2.
    My catalog is on the local iMac drive, and the images are on SMB shared drive (handled by Windows 2012 server).
    I decided to do the final layout of my album using InDesign, and for that I needed to access to images using Bridge. So selected all the images (the rated once...) and issue a Metadata/Save command.
    The system came back with errors on many of the files (such as Photos are read only, and unknown errors).
    Retrying to save the metadata on image that was flagged with an error usually (but not always) worked.
    I tried to select save the metadata for few (6) images in a time, many times it was ok, but sometimes, one or two of them failed (and retrying again usually solved the problem).
    It looks to me like a timing related issue.
    Any ideas?
    (After spending about an hour on this, I have exported the images to my local drive...). In general I don't have similar problems with other apps.
    Any ideas?
    Yuval

    I Yuval
    I'm experiencing more or less the same behavior (see Read-only error when writing metadata to file over network (Synology DS1315+ using AFP) ). For me however, the problem is more pronounced if I use the AFP protocol and is better (I think as you described) if I use SMB (all done on a Synology DS1315+). With SMB it most often works but in very rare cases I also get the "read only" message!
    Do you have solution to this? Or are you stuck as I am?
    Cheers, Chris

  • Bridge 4.1.0.54: Error writing Metadata to some [....].jpg

    I am sorting my files (.JPG) with bridge. Some files just can't get rated (bridge fails without giving me an error), and if I try to set other metadata (like keywords), bridge tells me "There was an error writing metadata to ".....JPG".
    I have full access to the folder, it is an internal disk, the files are not locked. It affects about 5% of all files - this is the second shooting (&folder) where I have this problem. I don't see any differences between the files I can change and the ones where I can't.
    I can rename the file with bridge, but that does change nothing. I tried purging the cache, it changed nothing.
    I just found out: I can change the tags with Windows Explorer, Bridge does show them, and afterwards I can change them with bridge too. Someone got an Idea how I can avoid this step?
    [Win7Pro x64, i7]

    Jingshu Li wrote:
     I tested your issue but haven't reproduced yet. Could you please provide more info? 
    1. You mentioned usually you will select tens of images (in the smart collection or search result) and apply metadata, and then you get the error. I'm wondering can you apply metadata successfully if you only select one image and then apply metadata?
    2. Before you apply metadata, do you wait for the images thumbnails genaration complete?
    3. Can you apply metadata successfully if you selete the images at their real location (not in the smart collection or search result?)
    4. Your OS info, mac or win, and version?
    I just set up a quick test, and it failed immediately. I haven't even been using Bridge today...
    The computer runs CS5 on Windows 7 Professional 64-bit. I used to run CS3/CS4 on a different computer loaded with Windows XP Professional. I'm always up-to-date with OS/driver/application updates. Both systems exhibited the same problem.
    The raw image 3-tier folder hierarcy is on a separate internal drive: P:\Camera\2011\08-15 Location\, P:\Camera\2011\08-16 Location\, etc.
    The Bridge cache is on a separate internal drive: T:\BridgeCS5\, Camera Raw's cache is in T:\CameraRaw\.
    The images are mostly Nikon NEF (D300), and ACR saves settings to 'sidecar' files. Most of the images have settings, and many have crops.
    I created a new Collection, and dragged the contents of 7 image folders into it - a total of 407 images. None of these files have had keywords applied, but most had been worked in Camera Raw already. After waiting for thumbnail/preview generation to finish, I selected the collection, created a new sub-keyword, selected all images in the collection, and ticked the new keyword (automatically ticking the parent keyword). Within a few seconds, I started getting the "Error writing metadata..." warnings, and had to OK 15 images.
    The failed images were spread across 3 of the 7 selected directories. Trying the same thing 30 minutes later resulted in the same errors. Trying each failed image individually gave the same error (either as part of the collection, or from it's own folder).
    I opened one of the problem images in Camera Raw, and adjusted Blacks, clicking Done to save the settings. I then tried to apply the keywords again. This time it worked.
    To answer your questions directly:
    1. I have never experienced this problem keywording files individually (apart from after the errors, as mentioned above), but then I wouldn't usually be selecting lots of images to keyword individual images.
    2. Yes, I always wait for the spinning circles to disappear, sometimes even longer!
    3. I just tried applying keywords to a single folder of 102 images, and 2 failed to update. So the answer is No, it fails at real locations too.
    4. Windows 7 Professional 64-bit, running on Intel Core2 Duo and 4GB RAM. Same thing happened before on a Windows XP Professional PC, running on an Intel Pentium 4 and 2GB RAM and a single hard drive.
    I hope that helps.

  • Error when Writing Metadata to Files in Bridge (Mac) but not in Bridge (PC)

    We get an error when writing metadata to files in Bridge (Mac) but not in Bridge (PC). In the same drive and folder, the PC can successfully write a keyword to a file on the PC, where the Mac returns an error. I have researched this at the Adobe Knowledgebase, but their answer seemed to indicate it was a global issue, and we don't see that behavior on the PC.
    The client is a Mac of course, and the server volume is a Windows share volume. The Mac is bound to AD, and the domain\username and username formats have both been tried when logging in, but you receive the error in both.
    Any help would be appreciated.
    Thanks!
    Rich Oliver

    Hi, I'm having the same problem using FreeNAS (which uses Samba and Netatalk in the backend), but I tried with both AFP and SMB on Mavericks and Yosemite, I still have the same issue.  I think it might be a timing issue with how lightroom interact with a slower write delay using network shares.  I suggest you also chime into this thread:  Lightroom 5 can't write metadata to DNG files   I really hope this is resolved as this is impacting my productivity as I moved my workflow to my Macbook with a shared NAS.

  • Error writing metadata to photo files

    I am using CS6 and have moved to a new computer with a clean install of CS6 under Windows 8.1.  In the past I had no problem using Bridge to append my personal metadata file to photos (RAW files, NEF).  With the new installation I am getting the repeated message " Error writing data to...."  even after trying all the " fixes"  suggested by the help files.
    Can anyone help me to resolve this issue?
    Thanks.

    I found an answer, somewhat different.  I did more search and found that you need to be administrator and for Adobe to see you as administrator, for many functions to work, such as writing metadata to files or putting stars on photos to rank them.  I could do neither.
    THEN, I tried opening Bridge by right clicking on the icon, and opening the file as administrator (a choice).  Everything worked.  So, why was Adobe not seeing me as administrator.  My user account was the only account on the computer and has administrator privileges.
    I started doing searches on that, and stumbled, yes stumbled, on what I think is a solution to that situation.
    I set up my account so that I needed a password to log in.  Once I did that, Bridge worked fine.  But, I still did not want that additional startup step.  You can then back to change password and leave the password entries blank.  Then, the computer starts up with blank passwords, zips past the welcome screen directly to the desktop, and Windows now sees me as the administrator, and so does Adobe.
    Keep you fingers crossed folks, this seems to be working.

  • CS6 "There was an error writing metadata" message PC and Mac

    I have seen this in the forums but looks like no one has an answer yet. Adobe chat support was totally not helpful.
    I am getting an error message when trying to apply keywords to some images in Bridge. The error is very non-specific, all it says is "There was an error writing metadata to "filename.ext"".  This happens when trying to apply keywords to a batch or single images.  If not all images in the batch are error-prone, keywords are applied to those images and I get the error message for each image that had a problem.
    My version is CS6 5.0.2.4 x32, but my co-worker downloaded a free trial today for her PC and is having the same problem.  Another co-worker downloaded to his Mac and has the same issue. I am on a windows machine. 
    Sometimes one co-worker get the error message on an image, and I am able to tag thje image without error.  Other times, none of us are able to tag the image.  The images were not made by the same camera and come from different sources.
    We are all administrators on our computer and have tried opening Bridge with "run as administrator".  We still get the error. 
    The images are on our local machine, not a shared network drive.  Some of the images did live on a shared network drive at one point, but not all.  We can't seem to find a pattern between the files this is happening with.

    That sounds like a problem with your machine, perhaps not enough Ram, a hard drive going south, a permissions issue, etc.
    BOILERPLATE TEXT:
    Note that because this is boilerplate text, not all points may apply to any given, specific poster.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    etc.,
    someone may be able to help you (not necessarily this poster).
    a screen shot of your settings or of the image could be very helpful too.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • LR3 not writing metadata to xmp

    Preferences set to automatically write changes to xmp file.  LR3 has stopped writing changes to xmp. 
    When I choose a thumbnail and click the "!" in upper right corner + click "Retry Metadata Export", I get this message: "Could not write metadata.  Your disk has less than 1 gigabyte of space left".
    This is correct, as there is 200mb free space on the particular disk, but I would think this would be sufficient.  So question is: how much free disk space do I need for LR3 to continue to automatically write metadata to xmp?

    From the message you have received and the statement made in the requirements for running LR on the Lightroom home page
    minimum1GB of available hard-disk space
    it would seem likely that 1 GB is the minimum. However I would suggest rather a great amount of free hard disk space is required in order for LR to function efficiently. But the minimum is pretty clear.Once you go below this you will experience problems and not just with writing metadata to file, but writing changes to the catalog itself if that is located on a disk with less than the minimum requirements The metadata once written takes up very little space, but the process of writing it can require space on disk for temporary files etc. Just make sure you have lots of spare capacity on any drive you use with LR.

  • Error Writing Metadata

    I recently upgraded from LR 2 to LR 3.2, the thumbnails at the bottom of the bottom of the Library screen have an ! imposed over them along with the message "Error Writing Metadata".
    What did I do wrong & how do I fix it?

    Dorin,
    Your solution woked pefectly, my problem is resolved!
    Thanks for your help.
    David

  • Problems adding metadata to file

    Hello,
    I've recently stopped automatically writing metadata to file, and now do it manually after I have edited a folder of
    photos by command-s or clicking on the down arrows which indicate the metadata hasn't been written yet
    But I have two problems:
    1) When I select a few photos, either by shift-click or command-A, then  do a command-s or click the
    arrow to save metadata, it only saves it to the first photo (I thought I could save more than one photo at a time?)
    2) After I save metadats to file, and the arrow goes away, and I exit the folder I've been working on,
    if I go back to the folder the arrow(s) often come back, even though I've done nothing more (no more
    editing/keywording etc). In fact the arrows are back as soon as I open the folders?
    I then save metadats to file again, and same thing happens - it's driving me crazy. Any ideas
    Many thanks, Roy

    Thanks, that seems to have worked (fingers crossed). It seems to me that the file is writing metadata back to the
    catalogue though, where it came from? This confuses me.
    I have also seen something on an Adobe link (I forgot to mention I convert my files to DNG in Lightroom) that states:
    'If you're working with a DNG file, choose metadate>update DNG previews & metadata to save metadata changes to the file and also generate a preview based on the current raw processing settings'
    I've never seen this before, and maybe it's what I should do each time instead of command-s or metadata>read metadata from file? I've got a couple of LR5 books, including the one by Martin Evening, but pretty sure this isn't mentioned, or I've missed it. Can anyone clear this up as I'm worried I might be doing something wrong here?
    Roy

Maybe you are looking for

  • How to get report for cost estimates material cost only

    Hi Gurus, We have requirement in sales order costing that we need to develope report which shows only Material cost for all BOM levels. Normally at lower levels cost of Material and activity cost will be treated as Material cost for next level. Here

  • How do I delete photos in the icloud and have them stay gone?

    How do I delete photos in the icloud and have them stay gone!

  • Two hard drives with time machine?

    I have two external hard drives: one at work, and one at home. Can I have time machine running on both, so that I have a complete backup in both places? If so, how?

  • Shooting black and white images

    Hullo all, I have been a long time user of Aperture and find it wonderful! I shoot with Nikon gear, mainly with a D7000 and a D5100. I find both magnificent! Love a D800, but not right now! Now to my question. I have restricted my shooting to colour,

  • VV501 error in Posting Goods Issue (VL02N)

    Hi, in VL02N when we try to "Post Goods Issue" sap gives the error "vv501 - Blocking error" The error is like below: Diagnosis A system error occured during the attempt to block the material you are processing. System Response It can be assumed that