Question
remove Photos form collections
Hello
My solution for remove selected photo
local catalog = LrApplication.activeCatalog()
local photos = catalog:findPhotos {
searchDesc = {
criteria = "pick",
operation = "==",
value = -1
}
}
catalog:withWriteAccessDo('with', function( )
local collection = catalog:getCollections()
collection:removePhotos( photos )
end, {timeout = 30})But nothing happening when I execute code.
Please help me! What is wrong with this code?
