How to filter by rating?

I know how to use setattr META "Rating:4" to assign star ratings to files but I can't see how to define a filter that will use Rating as a means of limiting what is shown. Is there a way? I'd like to rate a bunch of photographs and then filter down to the best ones.

Regards, AB

Hmmm

I thought this had been raised before. See here. It would be neater if Opus filters supported the Rating keyword but at least there is a way....

Regards, AB

I have revisited this requirement and have come to the conclusion than it's best done by filtering to a collection.


This can easily be fully automated with a button. In my case I have set up LMB to add to a collection and RMB to clear, then add.

LMB Code : Find NAME #Stars IN {s} FILTER SHOWRESULTS tab COLLNAME Starred CLEAR=No
RMB Code : Find NAME #Stars IN {s} FILTER SHOWRESULTS tab COLLNAME Starred CLEAR

If you want to be able to tweak the named filter before executing, just add the NOAUTORUN argument.

LMB Code : Find NAME #Stars IN {s} FILTER SHOWRESULTS tab COLLNAME Starred NOAUTORUN CLEAR=No

Regards, AB