Copy link to clipboard
Copied
I use the LrExportSession to create a custom export session and I want to have the UUID as part of the file name (photo:getRawMetadata( "uuid" ).
This helps in a second plug-in function to retrieve that perticular photo by it's UUID: catalog:findPhotoByUuid( uuid).
As far as I researched, the UUID is not one of the "Token patterns" that the SDK offers for assembling the file name. I researhed also the exportServiceProvider.updateExportSettings( exportSettings ), but I can't find this in combination with renaming.
Question
How can I export using LrExportSession and generate the file name containing the UUID of that photo?
Copy link to clipboard
Copied
The best solution I could find is:
for i, rendition in exportSession:renditions(renditionParams) do loop
local err_code = LrTasks.execute( quotedCommand )
end