Macro to Solo Folder of Selected Track

Subject says it all. When I have a track selected, it would be great to have a macro tied to a key command so I can quickly just solo the entire folder where that track lives - without touching my mouse. Tried but couldn’t find my way to this. Any advice?