Pick Up Path of Folder for Macro - Pro Tools

There are also explanations here Finding the file path for an open document in Audacity
But I can’t make it work either.