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

Any API to apply an existing "filenamePreset" ?

Advocate ,
Aug 18, 2024 Aug 18, 2024

Copy link to clipboard

Copied

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

Views

138

Translate

Translate

Report

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.

Votes

Translate

Translate
LEGEND ,
Aug 18, 2024 Aug 18, 2024

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Thanks @John R Ellis

 

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.

 

 

 

 

 

 

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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 😆

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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 ?!

 

😂🤣🤣

 

 

Votes

Translate

Translate

Report

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