Writing specialized metadata to image using Javascript...

I'm working on a project where we are dumping metadata from a database into a text file and then writing it to images using javascript. As long as I use the fields listed in the Javascript reference manual, it works perfectly.
However, the client has asked me to write specialized metadata. I created a panel for them to add in the extra fields. Is there a way to get Javascript to write the extra fields? (Is there a way to extend the DocumentInfo class in Javascript? Me thinks not...but I thought I'd ask.)
Thanks,
Laura

I very interested in this as well... Found an answer yet? Seem silly to me that do don't have access to all of your tags...

Similar Messages

  • Replacing images using Javascript

    There are several posts explaining how to replace an image using Javascript (simpler with JQuery), but when I tried the code, the image kept reverting to the original image specified. This occurred regardless of browser, but does not revert in DW's "Live View". It turns out the culprit is that I was using an anchor <a> with a href attribute. The browser apparently evaluates the href after processing the OnClick() event. Switching to a button versus an anchor solved the problem. DW needs a little tuning.

    It turns out the culprit is that I was using an anchor <a> with a href attribute. The browser apparently evaluates the href after processing the OnClick() event. Switching to a button versus an anchor solved the problem.
    If you show us your code that wasn't working we'll be happy to recommend
    Don't need to see code. The explanation was clear enough to determine the cause of issue. <a href="somefile.ext" onclick="somefunction();">click</a> is going to somefile.ext immediately after triggering the onclick event on the page. Lookup return false; for the solution of using onclick event in an anchor tag.

  • Access metadata and images using Lightroom API

    It would be great to access the images in the Lightroom library from outside Lightroom (including all post-processing of course). This would enable 3rd party applications to integrate the library into the application. This is especially useful for media centers.

    You would really need a shared catalog and image files on an external hard dive. Then connect the ehd to either machine, as needed.
    I personally use a master catalog on my desktop machine and a travel catlog on my Macbook pro. That lets me shoot photos, apply metadata and edit them on the road and when I get home I simply import the travel catalog into the combined master catalog.
    This video tutorial from Adobe Evangelist Julieanne Kost gives a demonstration of how to use a travel catalog on-location.
    http://tv.adobe.com/watch/the-complete-picture-with-julieanne-kost/how-to-use-lightroom-5- on-location/

  • Using Javascript to rotate images with the style.backgroundImage property & I leave the onload pg & return, the images have trouble loading.

    I'm using Javascript to rotate background images -->
    function rotateImages() {
    setInterval("startRotator()", 7000);
    var counter = 0;
    function startRotator() {
    var images = ["images/finance1.jpg","images/finance2.jpg","images/finance3.jpg","images/finance4.jpg","images/finance5.jpg","images/finance6.jpg"];
    if( counter >= images.length ) {
    counter = 0;
    var image = "url('" + images[counter] + "')";
    counter++;
    document.body.style.backgroundImage=image;
    The script is triggered by the load event when the homepage loads and the script only runs on the homepage. Everything works fine upon opening the homepage.
    If I leave the home page and return, the images will have trouble loading for about 3 to 5 cycles and I'll get white backgrounds for part of the time. The same thing happens if I enter the site from a page other than the homepage and then go to the homepage.
    I discovered, however, that if I enter the site at the homepage and then leave the homepage and return using the back button, everything runs fine. Apparently it then accesses a cached version of the homepage? Seems having two cached versions creates a conflict?
    This problem only happens with Firefox (I have ver 29.0.1). It does not happen on IE ver 11, Chrome ver 34, or Safari ver 5.1.7.
    I get the same problem with XP, Win7, and Win8 but, only on Firefox.
    Can you please fix this?

    Hey, I am trying to reproduce this here: [http://jsfiddle.net/u3TLb/]
    Mozillazine forums and the [http://webcompat.com] are more specialized in Web Compatibility, please ask there as well.

  • How to display Images stored in a database using javascript

    Hi.
    I have some images stored in a table and I need to display them using javascript. The images are stored in BLOB columns: I would like to know if I can put them on a directory and then get it from there using BFILENAME function.
    Any suggestion?
    Regards,
    Jeannine

    Hi All,
    Yes DuraiRaja - i am using the document.getElementById(' ').
    In my app, I have a Main controller calling a View - Default.HTM,
    This Default.HTM, in turn loads up three trays T1, T2, T3 and these tray elements in turn call up the controllers ctrl1, ctrl2, ctrl3 associated to them.
    CTRL1 calls a view - View1 - V1.htm, which has the below code.
    And on the below page all that i am trying to do is validate if "FieldVal" is blank or not.
    I get an error on IE as "Object required"
    I get a HTTP 501/505 error when i try to upload the code.
    Thanks all !

  • After importing images from my card using LR 5.4, the GPS data does not show in the metadata panel. However, when I look at the imported images using Bridge, the GPS data is visible. Anybody know why LR is not seeing the GPS data? Camera is Canon 6D.

    After importing images from my card using LR 5.4, the GPS data does not show in the metadata panel. However, when I look at the imported images using Bridge, the GPS data is visible. Anybody know why LR is not seeing the GPS data? Camera is Canon 6D.

    Ok, the issue seem to be solved. The problem was this:
    The many hundred files (raw and xmp per image) have been downloaded by ftp in no specific order. Means - a couple of files in the download queue - both raw and xmps. Most of the time, the small xmp files have been finished loading first and hence the "last change date" of these xmp files was OLDER than the "last change date" of the raw file - Lightroom then seem to ignore the existence of the xmp file and does not read it during import.(a minute is enough to run into the problem)
    By simply using the ftp client in a way that all large raw files get downloaded first followed by the xmp files, we achieved that all "last changed dates" of the xmp files are NEWER than the related raw files. (at least not older)
    And then LR is reading them and all metadata information has been set / read correctly.
    So this is solved.

  • Adding name of indesign document to metadata of all images used in document

    I have been asked to include the indesign file name in the metatag of each image used in every document i produce from here on.
    is there a way to write a script in indesign that will copy the document name then open every link (in bridge?) and append the document name to the metadata (i don't want to lose any existing tags) and then save?
    scott

    This should should give you a start. It'll add the active documents name to the field instructions of the img when executed. Tested once. No errorhandling.
    currDoc = app.activeDocument;
    docName = currDoc.name;
    docGraphics = currDoc.allGraphics;
    for(var g = 0; g < docGraphics.length; g++){
        currGraphic = docGraphics[g];
            currGraphicFilePath = currGraphic.itemLink.filePath;
            fileObject = File(currGraphicFilePath);
    writeDocNameToMeta(fileObject, docName);
    function writeDocNameToMeta(fileObject, docName){
    if(loadXMPLibrary()){
            var myFile = fileObject;
            xmpFile = new XMPFile(myFile.fsName, XMPConst.UNKNOWN, XMPConst.OPEN_FOR_UPDATE);
            var myXmp = xmpFile.getXMP();
                  var myStatus = myXmp.getProperty(XMPConst.NS_PHOTOSHOP,"Instructions");
       myXmp.deleteProperty(XMPConst.NS_PHOTOSHOP, "Instructions");
       myXmp.setProperty(XMPConst.NS_PHOTOSHOP, "Instructions", docName);
       if (xmpFile.canPutXMP(myXmp)) {          xmpFile.putXMP(myXmp);    }
            xmpFile.closeFile(XMPConst.CLOSE_UPDATE_SAFELY);
            unloadXMPLibrary();
        function loadXMPLibrary(){
            if ( !ExternalObject.AdobeXMPScript ){
                try{ExternalObject.AdobeXMPScript = new ExternalObject('lib:AdobeXMPScript');}
                catch (e){alert('Unable to load the AdobeXMPScript library!'); return false;}
            return true;
    function unloadXMPLibrary(){
            if( ExternalObject.AdobeXMPScript ){
                try{ExternalObject.AdobeXMPScript.unload(); ExternalObject.AdobeXMPScript = undefined;}
                catch (e){alert('Unable to unload the AdobeXMPScript library!');}
    Hans-Gerd Claßen

  • How to get image properties in PDF using javascript or plug ins

    Hi
    How to get the image(all the images) properties in PDF using javascript or suggest plug ins
    Thanks in Advance

    HI,
    In the PDF Edit API's ( as has already been suggested) there is the PDEImage and using this you should be able to find out everything you need to know about any image in a PDF file.
    I would recommend starting with PDEImageGetAttrs
    Hope this helps
    Malcolm

  • How to get image properties in PDF using javascript

    Hi
    How to get the image(all the images) properties in PDF using javascript?
    Thanks in Advance

    Hi
    Thanks for your quick response. Any recommended plug ins
    Thanks in advance

  • Why does Firefox 35.0.1 crash regularly on many sites that use javascript image rotation?

    Since the latest update to version 35, many sites that use javascript to manipulate images tend to crash firefox and make either the guilty tab or all of firefox close suddenly. (Firefox on Debian 7 Wheezy Linux, all updates current). I use firefox daily for web development and this regression bug is VERY annoying for my workflow. I understand you cannot take every situation into account. I do not have the time to investigate what has made Firefox less stable. I really hope you can fix this performance problem. If I can do anything concrete to help besides jumping into the code, let me know.

    '''[https://addons.mozilla.org/en-US/firefox/addon/flashblock/ Flash block]''' {web link}
    Never be annoyed by a Flash animation again! Blocks Flash so it
    won't get in your way, but if you want to see it, just click on it
    If you have problems with current Shockwave Flash plugin versions then check this:
    * see if there are updates for your graphics drive drivers
    '''https://support.mozilla.org/kb/upgrade-graphics-drivers-use-hardware-acceleration'''
    * disable protected mode in the Flash plugin (Flash 11.3+ on Windows Vista and later)
    '''https://forums.adobe.com/message/4468493#TemporaryWorkaround'''
    * disable hardware acceleration in the Flash plugin
    '''https://forums.adobe.com/thread/891337'''
    See also:
    * '''http://kb.mozillazine.org/Flash#Troubleshooting'''

  • Resizing Image Window in Photoshop using Javascript

    I write many scripts using the ScriptListener as my base for obtaining my scripts. One of the steps I need is to resize the Image window so I can properly place a logo on an image. When I resize the image using File>Automate>Fit Image. The Image Window shrinks down and I have to use Control 0 or Command 0 to resize the image window to be able to view a larger image on the screen to place the logo.
    This is the Image Window Size after File>Automate>Fit Image
    I need ot make the Image Window Larger using Control or Command 0
    ScriptListener does not record this step of Control or Command 0.
    Is there a script that anyone knows that does this?
    It would be a great time saver if there was.
    Thanks in advance for assisting me.
    WorkflowMaster

    Hi Workflowmaster,
    Can you check the below mentioned script for your solution...
    I think it can be works.......
    - yajiv
    Code :
    Fit_ON_Screen();
    function Fit_ON_Screen(){
            var idslct = charIDToTypeID( "slct" );
            var desc64 = new ActionDescriptor();
            var idnull = charIDToTypeID( "null" );
            var ref44 = new ActionReference();
            var idMn = charIDToTypeID( "Mn  " );
            var idMnIt = charIDToTypeID( "MnIt" );
            var idFtOn = charIDToTypeID( "FtOn" );
            ref44.putEnumerated( idMn, idMnIt, idFtOn );
            desc64.putReference( idnull, ref44 );
            executeAction( idslct, desc64, DialogModes.ALL );

  • Writing a menu using JavaScript

    I need to write a menu using JavaScript. I'm new to using JavaScript. I was told that i can set ScriptLanguage to "Java" in an HTML document and then use Java inside. But i dont understand how that can be done. Please help

    Java != JavaScript
    i.e. You're on the wrong forum. Go find a JavaScript forum.

  • Error writing XMP metadata

    I'm running version 1.4.1 under Vista Home Premium. I have imported several hundred jpegs from my HDD and some of these have a downward arrow at the top right of the thumbnail in Library view. On clicking this, a dialog tells me the metadata has changed in Lightroom and I need to save the changes to disk. On clicking "save"I get an error dialog stating "'Writing XMP metadata' did not complete successfully". I've also tried selecting a whole folder of jpegs, or a batch selected by Keyword, and updating them all at once using the "Metadata - Save metadata to files" menu option, but more often than not there are some photos in the batch that will not write the metadata successfully. I have been unable to detect any pattern to the images "chosen" for rejection. I think they are all pictures that were originally scanned from prints, but so were many others that update successfully. The metadata I am trying to update on them consists of Keywords and Capture dates.
    Can anyone suggest how I might get these files to update?

    I posted a similar query a little while ago, and judging from the response this was not widespread so I reasoned it was something peculiar to my catalogue.
    After extensive testing of my set-up I could find nothing - indeed the XMP data APPEARED to be written fine to the XMP segment of the jpegs, etc. and to the XMP sidecar files for the RAW images - just Lightroom was sure it wasn't OK.
    To cut a long story short, I found that I had a spurious and invisible control character in one of my metadata fields. I guess I inserted this character when I was fumbling round the keyboard trying to find the correct key combination for the '©' (copyright) character. Unfortunately I did this when setting my standard metadata template I use on all imports!
    When Lightroom writes the XMP data it doesn't write this control character, however the character exists (invisibly to the Lightroom user) in the catalogue database. As a result the file-based and database versions will never match - with manual or automatic syncing - so you (nearly) always get the 'File Metadata needs updating' arrow icon.
    To check this out you need to choose an image and remove metadata one field at a time - trying the save between each change. When it saves OK then you have found your culprit and can sort out the rest of the images.
    Strictly speaking this is a bug. The interface should show all characters in the database and shouldn't store in the database anything that is invisible in the GUI...

  • Extract images using itext library (Urgent)

    Hi All,
    Please send some sample example of extracting embedded images using iText library.
    Thank in advance.
    - Ganesh

    @Avinash – I'd use InDesign (the re-opened IDML file) and some ExtendScript scripting for that task.
    You have to distinguish between three basic data types:
    1. Pixel only
    2. Vector only
    3. Mixed pixels and vector
    Pixel only: could stem from a variety of source files: from PSD, TIFF, JPEG, PNG, EPS…
    Vector only: EPS, WMF, PDF
    Mixed ones: EPS, PDF, PhotoShop (//EDIT: Not to forget PSD!!)
    It depends on your InDesign version which type of file you can write (export):
    PDF, EPS, JPEG, PNG*
    So, for an unclear situation (the nature of the placed file) I always would chose PDF as export format with transparency intact: PDF/X-4.
    And proceed on with the exported PDFs. You could parse them to PhotoShop writing pure pixel formats if you want.
    You could also look for Adobe Illustrator meta data and try to open it in Adobe Illustrator.
    Here an example for what can be done with ExtendScript and pasted or embedded images by Peter Kahrel:
    Peter Kahrel
    Write pasted and embedded images to disk
    http://www.kahrel.plus.com/indesign/unembed_images.html
    However, this script is missing PDFs as export format.
    Layered embedded PhotoShop or Adobe Illustrator files would also be a very special case that should be treated separately.
    Color Management in these cases could be a problem too.
    From pure IDML, I see no chance…
    (but maybe someone else)
    Uwe
    Message was edited by: Laubender

  • How to get page number from the PDF using Javascript

    Hi,
    We are having list of Single page PDF. The pdf are named in the order,
    ISBN_Author_01.PDF  (with real page number as i)
    ISBN_Author_02.PDF  (with real page number as ii)
    ISBN_Author_03.PDF  (with real page number as iii)
    ISBN_Author_04.PDF  (with real page number as 1)
    ISBN_Author_05.PDF  (with real page number as 2)
    ISBN_Author_06.PDF  (with real page number as 3)
    ISBN_Author_nn.PDF  (with real page number as 500)
    Here each pdf has a page number and in sequential order.
    The task is to check whether all the pdfs are in sequential order (i.e i, ii, iii, 1, 2, 3). If any page is missing, the script should throw an error report.
    To do this task, I am writing a Javascript to get the real page number from the PDF.
    Can anybody help me how to get the page number from the PDF using Javascript.
    Thanks,
    Gopal

    The "real" page number within a PDF is the count of the physical page starting at 0, zero.
    pageNum numPages
    The number printed on each page is the page label.
    setPageLabels  getPageLabel
    You will have to open each PDF and your script would need to know the page label for that file. I would expect you would need to build a 2 dimensional  array of the file names and the page label for the page within that array.

Maybe you are looking for

  • View next received email when I click back into a folder

    Hello Does anyone know how to view the next new email without having to actually click into it? I have rules sent to place emails in folders when I receive a new emails. I used to be able to click that folder and it would highlight the most recent em

  • Invisible Text in Flash Player Using Windows XP

    I seem to have a problem with the Flash Player and invisible text. The Flash Player will load but there will be some buttons that are not labeled with text, so you don't know what the buttons are, fill-in text boxes that have no text or text descript

  • Failover Cluster disk failed on a VM.

    Hello, I tried to create a Failover cluster node on a VM (with a virtual disk with fixed size). All the step are ok except disk storage Add. When I try to Add a disk, the following error appears : Status : Failed. Information : Incorrect function. Er

  • Link between Appropritation Request and its Workflow log.

    Hello All, I am very new to the workflow related work. We have configured a workflow for the approval of Appropriation request. For printing of Appropriation request we have developed a smart form where we need to show the status of the respective wo

  • Adobe Rpemiere Elements 10 installation

    Je ne peux installer Premier Element on me dit que mon processeur pas compatible. INTEL core TM 2 Duo CPU E8400 3 Ghz 3.25 Go Ram Pourquoi??