I would like to programmatically retrieve criterion from a smart collection. I've found in LrCollection API a "setSearchDescription" but there is no "getSearchDescription" method to retrieve the search description table. Is there a way to workaround this?
Not sure why this functionality is missing. +1 vote for this as a feature request.
In the mean time, there is a possible workaround: if you can get an lrsmcol file from the collection (e.g. via export), then you can just "dofile" it, and the search criteria will be set in _G.s