Is it possible to have an unique document number/identifier (integer) as custom metadata which is automatically incremented for each document?
That’s already possible, see Bates Number placeholder and same AppleScript property.
Is it possible to have a custom bate number for each database?
You’re welcome and no. A Bates number is global.
Currently you can’t change it on your own but the next release will have an AppleScript property to set the Bates number’s intiial value.
You could try to simulate that by having a record
bates or so that contains the last number used. A script would then read this number, increment it, add it to the current record and write the new value back to
bates. Although I can’t tell you if this might run into a race condition or not.
@chrillek Thanks. Do you have an example for creating and saving such a record?
You mean for creating a text record and typing „0“ in it? I don’t think I can add anything to that description.
@chrillek How Do I access and update this record within in a script?
If you have a concrete question, I’m happy to help.