I could be totally wrong but i think I read on this forum that a script has to be "wrapped in a function" in the macros folder. when mach starts, mclua.mcc compiles all the macros (as functions, meaning that it reads them but does not do them). then when you call the macro, it runs the function (probably totally wrong wording there but from one dummy to another, you get the point). If your macro is not in function form then mach will run it right there on startup (put a message box in a script, not in a function, and see it for yourself). as far as ive seen most macros that compiled and ran just fine in the lua editor will cause mach to stop right there (i suppose its in some infinite loop or something). this was my laymans understanding of what i read on the forum so PLEASE correct me if i'm wrong! :-)
-Nick
ps- here we go talking about things when this thread is supposed to be for requests only.

New 'mach hangs on loadup' thread anyone?