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

Similar Messages

  • Is there a trash can for deleted files in Photoshop 10?

    is there a trash can for deleted files in Photoshop 10?

    Thank you so much for replying.  Yes, I'm using Photoshop Elements 10.  You may save me weeks of work.  Again "Thanks so much for replying to my problem.
    Howard
    [email protected]

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

  • How to create keyboard for Load Files into Photoshop

    does anyone know if there is a way to create or is there an existing keyboard shortcut to Load Files into Photoshop from Bridge?

    I should have been more specifc.
    Much like in bridge-tools-photoshop-load files into photoshop, I want to load multiple files into a layered photoshop document.
    Can't seem to find a keyboard shortcut for this action. Though I don't know how to write scripts very well but there are far too many keyboard shortcut posts I've searched and can't seem to find a way.
    thanks

  • I have a friend who I was helping out with his iPhone. He has since lost it. I believe I backed it up to my machine but have no idea where to find it. Is it possible to find it and read the back-up file without the original device being connected?

    I have a friend who I was helping out with his iPhone. He has since lost it. I believe I backed it up to my machine but have no idea where to find it. Is it possible to find it and read the back-up file without the original device being connected?

    If he gets another device - you should be able to restore it from your computer to the point where you backed it up
    Otherwise that file cannot be read

  • Editing SharePoint metadata for Visio files

    When I am editing Visio files metadata in SharePoint 2007, it opens a web dialog page to enter the metadata for the SharePoint library, but, when a column field is type: choice-drop down menu. It doesn't take current metadata for those fields, so, the current
    metadata has to be chosen again. Is there any technical document that explains this?
    It also takes too much time to open Visio templates in SharePoint, it doesn't happen with Visio standard files, the solution was to uncheck automatically detect settings, but is there any other solution?
    I am using Windows 7, Office 2010, Visio 2010 and Internet Explorer v8.

    Hi Javi, 
    thank for the reply, 
    after some discussion, trial and research, seems there is a process that is missed.
    as i know, when we check out the document the metadata itself cannot be edited. so then while we already saved the metadata, as by design the web file properties will be out and the metadata needs to be re-input again, as they will not be passed on check
    in process.
    so, this behavior is most likely by design, if you need to customize this then i think you need to open a ticket to us.
    "By default you cannot edit MetaData in case the document is checked-out - which is by design and acceptable. But if you open up a checked-out document from a WSS doclib and edit it in Word and click File > Save As - in order to save the document back
    into WSS - you are prompted for typing in MetaData (Web File Properties). In case you change or fill out some of them and in order to see them reflected on the WSS page you have to check-in the document again - which you will be ask for to do while closing
    the office application btw.
    If you keep the document checked-out the metadata are not reflected on the WSS page and are hidden (stored somewhere...) to the user. Users are confused because they cannot see the Metadata they typed in until they check-in the document. This wasn´t necassary
    with SPS2001 where we could see the changes we made to metadata immediately on the dashboard. And as Joerg also mentioned bad user experience - we create unnecessary versions as we have to check-in the document which creates an additional version.
    Solution here would be: either to reflect the changed MetaData immediately without the need to check-in the document or to avoid the Web File Properties Dialog box while performing a Save As of a checked-out document. "
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Is it possible to read/write to text file without deleting it?

    I know how to read from a text file and how to write to a text file. The problem that i have is i need to use a text file to store data for my application to read and also for my application to write. I would like it if i could write two programs really, one reads, the other is used to update the text file. This file is a list of verbs. I thought about using databases but i couldn't get them to work. I downloaded MySQL server 5.0 and installed it. I then downloaded the driver from http://www.mysql.com/products/driver and ran the auto installer. it said everything worked out perfectly but when i try these lines:
    Class.forName("com.mysql.jdbc.Driver");
    I get a SQLException that says no suitible driver
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    ( I thought this driver came with the JDK but i guess not, i just read about it in a java book)
    I get a ClassNotFoundException
    that just says sun.jdbc.odbc.JdbcOdbcDriver
    So yeah, SQL is pretty much not working. I need a solution to my problem, either by using text files, or a different type of database. I heard you could use excel to create a database but i have no idea how and i hear microsoft access could also do this, however i don't have microsoft access and i don't intend on paying for it. So, here are my questions:
    1st, is there a tutorial on using excel databases in java programs
    (if not)
    2nd is there a way to read/write/update a text file without deleting it?
    (if not)
    3rd is there a way to get SQL working, i have windows vista this could be the problem
    (if not)
    4th what could i do to store information on the hd for reading and modifying later?
    thanks, lateralus

    A database might be overkill just for a list of words.
    Thoughts:
    <ul>
    <li>What is the extent of your "file updating"? If you are just appending to the file, opening it in append mode will keep the file from being clobbered.</li>
    <li>Otherwise, why not create new files instead of editting them? The file names could include a version number or timestamp, allowing the reader to select the newest one.
    </li>
    </ul>

  • Proc*C/C++ suport for include files without .h extensions

    We have written code C++ code which is Standard C++ ver 5.0 compilant. In this version of C++ compiler the files are without .h extensions. For example <iostream.h> is now to be reffered as <iostream>. We are facing problems in compiling this code with PCC compiler
    Sample Code:
    File test1.h
    #ifndef TEST1H
    #define TEST1H
    #include<iostream>
    #include<list>
    class test
    private:
    int i;
    public:
    int k;
    #endif
    File test1.pc
    #include <iostream>
    #include<test1.h>
    int main()
    int i;
    std::cout << "Enter a value :";
    std::cin >> i;
    std::cout << std::endl;
    return 0;
    When this code is compiled with Code=cpp CPP_SUFFIX=cpp PARSE=PARTIAL options we get the following errors
    Pro*C/C++: Release 8.1.5.0.0 - Production on Fri Feb 1 12:46:00 2002
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    System default option values taken from: /oracle8/app/oracle/product/8.1.5/precomp/admin/pcscfg.cfg
    Error at line 2, column 10 in file test1.pc
    #include <iostream>
    .........1
    PCC-S-02015, unable to open include file
    Error at line 3, column 9 in file test1.h
    #include<iostream>
    ........1
    PCC-S-02015, unable to open include file
    Error at line 4, column 9 in file test1.h
    #include<list>
    ........1
    PCC-S-02015, unable to open include file
    I guess so PCC compiler does not identify include files without .h extension.
    Lata

    Do you have the SUNWhea package on your system? This package contains the headers you seem to be missing. It's on the Solaris 8 CDROM 2 of 2. If you don't know how to add packages from the CDROM, look up "Adding and Removing Software After Installing Solaris 8" in the "Solaris 8 Advanced Installation Guide" on docs.sun.com.

  • Bridge won't save metadata for .mov files

    Hi.
    I could be trying to do something that Bridge can't do (though I have read that it should). I am trying to add metadata to .mov files. Bridge allows me to enter the text both under 'File info' and in the Metadada IPTC Core fields, however when I 'apply' or click OK they don't save.
    Well, in the IPTC Core when I click 'apply' they are there until I select another file then go back and they aren't.
    I am using Bridge CS5 on a PC with XP.
    Thanks

    Thanks Curt Y. Under 'run as' there was two options both of which were noted as administrator - though I could only use one as we don't have the password for the other. I'm not using an external drive.
    The strange thing is that there is no problem applying the metadata to images, just mov files.

  • Internet Explorer ONLY passes parameters to Adobe Reader plugin for hosted files, not local

    WORKS:
    <embed src="http://host.com/test.pdf#page=5"/>
    FAILS:
    <embed src="test.pdf#page=5"/>
    Both code snippets above work when the HTML file is hosted (IIS / Apache).  My web-app needs to be able to run from a USB memory stick and work with IE9.  The #page param is required for a core feature of the app.
    Parameters after the # are passed correctly to the Adobe Reader plugin in Firefox for offline files, eg: file:///C:/test.htm.  The documentation only describes hosted examples: http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_open_parameters.pdf
    I have tried the <object> route as well with similar results, eg: http://pdfobject.com/
    I have burned over 8 hours looking for a solution. I have tried any logical settings in Adobe Reader X, and with the security zones in IE.  I am not very familiar with IE security zones, but I suspect it could be related to my issue.  I can specify the end-user change any browser or plugin settings as an acceptable solution.

    I am developing a hybrid web-application that needs to work both offline (entire website) and in a hosted environment.  A key part of the product is displaying PDF's with a dynamic index outside of the PDF. This allows us to use PDF's collected from hundreds of contractors, clients and manufacturers and combine them into one searchable product with a consistent interface.  I can specify product requirements including IE browser settings, installed plug-ins etc. I am not trying to cater to a wide audience such as everyone online, but a specific one that is spending $5k-30k for a custom resource.
    I expect the limiation is due to a wide cast net regarding security.  I tried every setting in IE and essentially fully disabling all security options did not resolve it.
    I found a solution, by accessing the ActiveX object directly you can use the exposed classes described here: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/wwhelp/wwhimpl/common/html/w whelp.htm?context=Acrobat9_HTMLHelp&file=IAC_API_OLE_Objects.103.167.html
    Javascript:
    var pdfO = document.getElementById('pdfObj');
    pdfO.setCurrentPage(pageNumber);
    HTML:
    <OBJECT id ="pdfObj" data="test.pdf" TYPE="application/pdf">
        <a href="test.pdf">Fall-back code</a>
    </OBJECT>
    This actually works much faster as well, since the plugin doesn't need to be re-drawn in the DOM

  • Batch Listing Metadata for Offline Files

    Hello all -
    I'm using Premiere CC 2014 on OSX. I'm trying to do a batch list export of the metadata for a few dozen offline clips in my project.
    Here are the details:
    I need the filenames and video ins and outs (NOT the media start and end) for all of my media files to put in a spreadsheet for archival purposes. I don't actually have access to the media itself - just to the project file.
    When I do a batch export by highlighting all of the files and going to File>Export>Batch List, the only three columns that export are the filename and the media start and end. I'm hoping to get an export with all of the columns of metadata so that I can narrow it down to just the data I need. Basically, this is the info that I want to be able to put in a spreadsheet:
    And this is what I'm getting when I do the batch list export:
    Does anyone know if this is possible?
    Thanks!

    Welcome to Apple Discussions:
    You might consider
    mdls
    in a terminal.
    If this is a server-specific issue, you might post in the server forum here:
    http://discussions.apple.com/category.jspa?categoryID=236

  • How to Read data from excel file without converting a excel file into .csv or any other format

    Hello,
    Can somebody suggest me how to read from an excel file (consisting of 10 work sheets) to an array?
    Thanks,
    She

    You have to be careful when using the spreadsheet-files vi's.  They are located in the Functions Palette under File IO, you will find "Write To / Read From Spreadsheet File.vi"s. 
    Here is what the Context Help says about the vi function:
    "Reads a specified number of lines or rows from a numeric text file beginning at a specified character offset and converts the data to a 2D, single-precision array of numbers. You optionally can transpose the array. The VI opens the file before reading from it and closes it afterwards. You can use this VI to read a spreadsheet file saved in text format. This VI calls the Spreadsheet String to Array function to convert the data. "
    This is quick & easy when the spreadsheet is all the same format.  You can set the format to string as well.  HOWEVER...  you do have to convert the Excel spreadsheet to text before using it.
    I haven't experimented with the Active-X, but it may look as the way to go if you have combination text / numeric values in the spreadsheet.
    If you did convert it to text, then you can use array functions as well and treating the file as an array of strings (see very brief example attached).  The example is to illustrate a point only  
    JLV
    Attachments:
    starting point for spreadsheet.vi ‏28 KB

  • Read Metadata from TIFF-file

    Hi All!
    I try to get metadata from a TIFF-file. I tried to do this with this code. Everytime i get the same error. Anyone can help me?
    int imageIndex = 0;
    File f = new File(sourceFile);
    ImageInputStream stream = ImageIO.createImageInputStream(f);
    Iterator iter = ImageIO.getImageReaders(stream);
    ImageReader reader = (ImageReader)iter.next();
    reader.setInput(stream);
    IIOMetadata m = reader.getImageMetadata(imageIndex);
    Errormessage:
    run-single:
    Exception in thread "main" javax.imageio.IIOException: I/O error reading image metadata!
    at com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader.readMetadata(Unknown Source)
    at com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader.seekToImage(Unknown Source)
    at com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader.getImageMetadata(Unknown Source)
    at tiffmetadatabug.Main.main(Main.java:80)
    Caused by: java.io.EOFException
    at javax.imageio.stream.ImageInputStreamImpl.readShort(ImageInputStreamImpl.java:211)
    at javax.imageio.stream.ImageInputStreamImpl.readUnsignedShort(ImageInputStreamImpl.java:222)
    at com.sun.media.imageioimpl.plugins.tiff.TIFFIFD.initialize(Unknown Source)
    at com.sun.media.imageioimpl.plugins.tiff.TIFFIFD.initialize(Unknown Source)
    at com.sun.media.imageioimpl.plugins.tiff.TIFFImageMetadata.initializeFromStream(Unknown Source)
    ... 4 more
    Java Result: 1

    I think you should test this with one or two pictures - import/convert, save metadata to file, geotag, read metadata. Also try import/convert, make small adjustment, save metadata to file, geotag, read metadata. In iView I often write metadata to DNG's that have been adjusted, then read the metadata in Lightroom - sometimes I add more data in iView and do more adjustments.
    I have seen the problem you describe, but it has been with raw files which I have adjusted in Lightroom but haven't saved out the metadata. I have then created an xmp sidecar in iView, and read the metadata in LR. So the sidecar had no ACR/LR instructions. The result was that my adjustments were wiped out. What I suspect is that something similar is happening with your DNGs - that conversion creates them but doesn't write the ACR/LR fields.
    So try a few alternative sequences.
    John

  • Proc*C/C++ support for header files without .h extension.

    Does Pro*C/C++ compiler suppport include files without .h extensions.??
    The following code written in a .pc file, which is compilant to Standard C++ 5.0 standards when compiled with Pro*C/C++ compiler to generate a .cpp gives errors
    #include<isotream>
    int main()
    std::cout << "Test";
    return(1);
    On compilation it gives following problems:
    #include <iostream>
    .........1
    PCC-S-02015, unable to open include file
    Standard C++ version 5.0 has all the include files without .h extension. Does any version of Pro*C/C++ support that?
    Lata

    The normal way to handle this is with the -I option on the compile line:
    cc -I/usr/ucbinclude -c myprog.c ...
    Is there a reason you can't use the -I option?

  • Can I open RW2 files on Photoshop or Bridge CS4?

    I have a Mac running OX 10.9.1. I have CS4 installed on my computer and would like to figure out how to open RW2 files in Photoshop/Bridge. The camera I used is a Panasonic Lumiz FZ40. I have Camera Raw version 5.7.0.213 installed.

    Hello, the best when facing such question is to google "Camera Raw supported" so that you get that page: http://helpx.adobe.com/creative-suite/kb/camera-raw-plug-supported-cameras.html
    In your case, you need at least Camera Raw 6.2, that is compatible with CS5.
    Luckily for you, Adobe has developped the DNG converter that can convert your RW2 to DNG files that Camera Raw 5.7 (*)  will be able to open and process.
    Get the latest version: http://www.adobe.com/support/downloads/detail.jsp?ftpID=5695
    (*and all the programs fully compatible with the DNG spec that do not open the RW2 from the FZ40)

Maybe you are looking for

  • "This is a valid Apple ID but not an iCloud account" on mail, but not online

    i am running mavericks with the latest update.  yesterday my mail stopped working for icloud but still works with all my other mail accounts.  i can log into icloud just fine online but when i try to add it back to my mail i get "This is a valid Appl

  • How can I find the index from a specific container?

    How can I find the index from a specific container? For example, if I'm traversing through textframes like so (an example, not tested): var doc = app.activeDocument; var story = doc.pages[0].textFrames[0].parentStory; for (var i=0, l=story.textContai

  • How to change the height of the advanced paragraph window in WPC?

    Hello, I would like to have a bigger window when I work with the advanced paragraph in WPC in order to see better the content. It´s ok if I see at the beginning the default size. However, I need the posibility to maximize the height of the window to

  • Premature end of file failure in Proxy-SFTP scenario

    Hi All, We had this asych. scenario working until, we got a request to send field names in the payload. In the receiver communication channel, under Module tab I've defined as below: Processing Sequence 1     AF_Modules/StrictXml2PlainBean     Local

  • Is Zen Micro display customisable? (No album inf

    Hi! I ordered a Zen Micro and I've set all my ID3 tags and create some playlists in WMP0. I have one big possible problem : All my MP3 have ID3 Tag (Artist - Title) info. but half of them don't have Album information. Can you set up the display so th