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?

Master Retouching Hair

Learn how to rescue details, remove flyaways, add volume, and enhance the definition of hair in any photo. We break down every tool and technique in Photoshop to get picture-perfect hair, every time.

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.

MacBook Pro 16” Mockups 🔥

– in 4 materials (clay versions included)

– 12 scenes

– 48 MacBook Pro 16″ mockups

– 6000 x 4500 px

Related Discussion Topics

Nice and short text about related topics in discussion sections