Fetch label info from files?

I would like to have a folder that contains shortcuts to files with a certain label (status label).

I figured I could make the shortcuts manually if it's not possible on an automatic basis, but first I would need to know how to fetch/refer to the files' labels.

Is it possible to just create a script that searches for files with the label and then create shortcuts to them inside a specific folder? I couldn't find anything related to scripting a search in the help file

12.2.5 beta added a way for scripts to get a list of labels for a file. If you have 12.2.5 or 12.2.6 installed, it'll be documented under the script "Item" object, which has a new Labels method. (It won't be in the online version of the manual until it goes into a stable release.)

If you want to do it in a more ad-hoc way, you can also search for labels using the Find Files panel, Advanced mode, which will let you get a list of files with a specific label that you can then run further commands on.

[quote="leo"]12.2.5 beta added a way for scripts to get a list of labels for a file. If you have 12.2.5 or 12.2.6 installed, it'll be documented under the script "Item" object, which has a new Labels method. (It won't be in the online version of the manual until it goes into a stable release.)

If you want to do it in a more ad-hoc way, you can also search for labels using the Find Files panel, Advanced mode, which will let you get a list of files with a specific label that you can then run further commands on.[/quote]

Thank you, I'll fire up that 12.2.6 installer ASAP