From
http://visualbuild.com/Manual/?scripteditor.htm
Script code entered in the script editor cannot reference macros (i.e., use the script code Application.ExpandMacrosAndScript("%MYMACRO%") instead of "%MYMACRO%")
The same limitation (and alternative) applies to script code within step script events, and we'll update the help to indicate that as well.