If folder content type detection is enabled in Preferences Opus automatically applies the appropriate format when the qualifying folder is opened. Is there any way for a script to determine that a particular group/type (e.g. Images or Documents or Programs) has been identified for that folder based on the user defined criteria that have been met, such as 25% Images?
It's not ideal (since it'd involve parsing language-specific strings) but you could find that information via the format.format_explain property. AFAIK there isn't a better way, at least right now.
Thanks.
On a related matter, how does Opus decide which content group format to apply when multiple content groups are matched?
From observation, Images seems to be preferred over Documents as long as the Images clip level is exceeded. With both Images and Documents set to trigger over 25%, in a folder with 2 x JPG and 5 x XLSX, Images format prevails despite the 29% : 71% imbalance. I have to add a sixth XLSX for Documents to prevail. It seems there is a ranking order where Images is higher ranked than Documents, and percentages are only considered from an over/under the user-defined clip point of view.