Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Any API to apply an existing "filenamePreset" ?

Advocate ,
Aug 18, 2024 Aug 18, 2024

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?



.

 

TOPICS
macOS , SDK , Windows
231
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Aug 18, 2024 Aug 18, 2024

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

Translate
LEGEND ,
Aug 18, 2024 Aug 18, 2024

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Aug 18, 2024 Aug 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.

 

 

 

 

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 18, 2024 Aug 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 😆

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Aug 18, 2024 Aug 18, 2024
LATEST

Indeed.

I just realised I can write a "Wipe out all photos" script with little effort.

None will be recoverable...only via backup.

But maybe I can also add a function to find the identically named photos in the catalog across all folders and storage currently connected so it can wipe out also the backups.

 

Surely millions of users will want to buy that right ?!

 

😂🤣🤣

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines