Get favorite folders from a specific branch through scripting

Hi y'all. It seems there's no available implementation to retrieve favorites folders from a script right? Like a vector with all the favorites from a specific branch. I'm making some personal script to do some quick actions (go, copy, move) with my favorites folders but seems there's no way. Any help will be appreciated.thanks

Thanks for the suggestion! We'll add this in the next update.