disk item id Property in System Events


I am creating a document management system in FileMaker Pro and I’m using an AppleScript to gather a complete, recursive listing of a given directory, one record per file or folder.


Is it safe to use the id property of disk item of System Events as a unique identifier of a given file or folder?

What does the id mean? Its value appears to be a list with two items, e.g. {-100,123324}.

How is the id generated in the first place? Does it change if, say, the file is modified or moved or archived and then extracted?

If anyone can provide insight I would really appreciate it.

Many thanks,