是否可以从OSX的终端上获取文件的徽章?

To write a script to monitor the sync states of some specific files or directories in the folder controlled by Google File Stream, I want to monitor the badges created by Finder Sync Extensions, which may be used by Google File Stream. Is it possible to get the badges of the files from the terminal on OSX?