That's correct. There is no recursive processing. @SCRIPT macro works just like @W. The referenced value or text is inserted only once. That's why you cannot use macro parameters with off-line scripts. As a workaround use a different method to obtain day of week value, for example, Dim dow, number Dim d, date Today d DayNumber d, dow MessageBox dow By the way, what's the reason to use off-line scripts? Why don't you want to use the script library instead? : The in-line script contains the simple line "MessageBox @W". : Once executed, it correctly displays the day of week. : If the in-line script contains "@SCRIPT:c:\sample.jal" and the file : c:\sample.jal contains the same line "MessageBox @W", it simply : displays "@W", like if the macro were not expanded. : This happens with any parameter substitution. : Thanks, : Angelo Amodio
|