Selecting a combination of Smart Groups and Macro groups via Applescript

After some forum searching... I found @CRLF 's macro which looks like i can use to accomplish what i'm looking for!