Answered
SDK during export rename exported file to uuid.jpg
During export I want to rename my exported images to <uuid>.jpg.
Is there a smarter way then my code below?
exportPath = "D:/Temp"
for i, rendition in exportSession:renditions(renditionParams) do
-- Wait for the upstream task to finish its work on this photo.
local success, pathOrMessage = rendition:waitForRender()
if (success == true) then
local newFileName = LrPathUtils.child(exportPath, rendition.photo:getRawMetadata("uuid") .. ".jpg")
local result, message = LrFileUtils.move(pathOrMessage, newFileName)
end
end
