Skip to main content
C.Cella
Inspiring
August 18, 2024
Answered

Any API to apply an existing "filenamePreset" ?

  • August 18, 2024
  • 1 reply
  • 379 views

Quick question: is there an API to apply an existing  filenamePreset?

I see photo:applyMetadataPreset( presetId ) but not the equivalent for filenamePresets

Is there another method that must be used?



.

 

This topic has been closed for replies.
Correct answer johnrellis

The SDK doesn't allow photos to have their files renamed, unfortunately.

1 reply

johnrellis
johnrellisCorrect answer
Legend
August 18, 2024

The SDK doesn't allow photos to have their files renamed, unfortunately.

C.Cella
C.CellaAuthor
Inspiring
August 18, 2024

Thanks @johnrellis

 

I knew photo:setRawMetadata could not be used so I was hoping at least via filename Presets there was a way.

 

I frankly don't understand this limit.

 

We can rename files via the UI directly or via presets.

There would be no harm to allow to do the same via an API.

 

 

 

 

 

 

johnrellis
Legend
August 18, 2024

The SDK doesn't allow deletions or moves either. Folklore says that the original SDK designers didn't want to allow the possibility of run-amok plugins destroying a catalog, but plugs can currently do a huge amount of damage as it is 😆