Two things:
1) Remove the brackets [ ] from your Run Script step. Brackets are used in fields to denote script code. So, first any macros are expanded, then anything between brackets is evaluated as a script expression, and finally the whole string is run through the script engine. The 2nd phase is what's causing you trouble and is unnecessary.
2) There is no reference to a macro in the last step you added, my guess is you want %FOO% there.
|