Any way to set Custom Metadata values outside of Inspector Custom Metadata screen?

Is there any way to set the value of a Custom Metadata field/variable outside of inputting the data onto the Inspector Custom Metadata screen?

I’m looking for any way to programmatically set the value of a Custom Metadata field/variable akin to using a LaTeX \let or \def command.

I’ve searched the L&L Blog but did not find anything other than a much earlier suggestion to use Replacements to globally change the name of a Custom Metadata field/variable to some global value.

Ideally, I’d like to have the flexibility to change the value of a Custom Metadata field/variable locally, e.g. within each Section Layout (Chapter, Section, etc.).

The dearth of information on the issue on the L&L Blog and in the manual leads me to think the option to set the value of Custom Metadata field/variables is not officially supported, but I it would be helpful if it were an available option.

Thanks for reading,
scrive
:thinking:

You can reach custom metadata via Project>Project Settings then custom metadata (as well as inspector metadata pane) and can add as much as like in various forms. However, custom metadata is project wise and can not be adjusted to apply to one section of the project.

1 Like

Hi GoalieDad,

Thanks for the note.

I can never remember how to access the Custom Metadata screen from the menu, and usually resort to using the available gear icon next to the Custom Metadata title e.g.:
image
but it’s good to have your reminder about the Project>Project Settings>custom metadata as well.

As for my question, I was inquiring whether there was some way to programmatically set any of the custom metadata values using any sort of code, whether it be Scrivener, LaTeX, or whatever.

As I mentioned in my post:

As to why I might inquire about such an option? Custom Metadata values have unique properties that make them available to be used in functions unlike other values. Having programmatic control would have added a degree of freedom (e.g. to set CM values in an if/else/fi statement) when working with Custom Metadata in the Scrivener environment, particularly when using LaTeX.

The non-response to my initial query leads me to believe that programmatic access to the Custom Metadata values is not an option, but it doesn’t hurt to dream …

Thank you for your comment and suggestion,
scrive
:thinking:

Remember with any custom metadata will be in search column and be a unique item to search your project. The other way to get to custom metadata is to put project settings icon on toolbar.

1 Like

If you want to set/choose the values (as in enter text, choose a date, check a box, or pick a value from a list) for documents/binder entries, but don’t want to edit those values in the inspector, you can view custom metadata columns in the outliner. You can sort by such a column too. But you can’t add to a list’s set of values to chose from; that’s only possible in the project settings.

1 Like