Quantcast
Channel: Adobe Community : Unanswered Discussions - Photoshop
Viewing all articles
Browse latest Browse all 74445

Read metadata for a file without Photoshop or Bridge

$
0
0

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.


Viewing all articles
Browse latest Browse all 74445

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>