Scripting using meta data

AS
Posted By
Andy S
Aug 1, 2005
Views
479
Replies
1
Status
Closed
Hi,

I know that I can use the File Browser to locate files via metadata tags. However, I’d like to do this using a script. What i want to do is this:

a) Find all meta data tags.
b) For each meta data tag, find all files, convert to JPG and place in a directory named after the meta data tag.

I’m a bit stuck as to whether I can utilise anything in the PS scripting support to do this. Specifically, I’d hate to have write low level scripts to access files directly just to pull out meta data if there was a decent meta data API there for me to use.

Any pointers?

How to Improve Photoshop Performance

Learn how to optimize Photoshop for maximum speed, troubleshoot common issues, and keep your projects organized so that you can work faster than ever before!

WS
Warren Sarle
Aug 2, 2005
"Andy S" wrote in message
I’m a bit stuck as to whether I can utilise anything in the PS scripting support to do this. Specifically, I’d hate to have write low level scripts to access files directly just to pull out meta data if there was a decent meta data API there for me to use.

There are lots of different kinds of metadata. The old-fashioned File>File Info
metadata is very easy to access from a script. For example, in Javascript, the title is app.activeDocument.info.title. EXIF data is more complicated because it requires a table look-up is not entirely standardized across cameras.
XMP data is a pain because you have to provide an XML parser of some sort.

If you have Photoshop CS or CS2, you already have the Photoshop Scripting Guide (look in the Scripting Guide folder). Otherwise, you can download it from the Adobe web site.

How to Improve Photoshop Performance

Learn how to optimize Photoshop for maximum speed, troubleshoot common issues, and keep your projects organized so that you can work faster than ever before!

Related Discussion Topics

Nice and short text about related topics in discussion sections