Skip to main content
Participant
May 17, 2006
Question

Rating + flagged

  • May 17, 2006
  • 1 reply
  • 442 views
I want to get all files of a directory or from the selected thumbnails,

- which are flagged (red, green, ...)
- rated, e.g. with 3 or more stars

How is this possible?

As written in the Bridge Script documentation the metadates should contain this information. But flag is always empty. I use the standard preferences (red color have 'red', green color have 'green', etc.).

Bye,
Norbert
This topic has been closed for replies.

1 reply

Participating Frequently
May 19, 2006
Norbert,

If you have not browsed the directory of folders, then Bridge may not have extracted metadata from the files yet, and Thumbnail.metadata may not give you what you want. Try using Thumbnail.synchronousMetadata.

Also make sure you are setting the namespace property correctly on the Metadata object before accessing a property in that namespace. The namespace for Label and Rating is http://ns.adobe.com/xap/1.0/.

Given a Thumbnail myThumb...

var md = myThumb.synchronousMetadata;
md.namespace = "http://ns.adobe.com/xap/1.0/";
var label = md.Label;
var rating = md.Rating;

-David