Tag Info

New answers tagged

0

Yes you can do it using the option IntializationCell, moreover there are complementary options for controlling its behavior. Here is the documentation on how to achieve it https://reference.wolfram.com/language/ref/menuitem/InitializationCell.html


0

Here is completely alternative solution that works similar to #! but for Windows. @echo off "C:\Program Files\Wolfram Research\Mathematica\10.0\Math" -noprompt -run "ToExpression@StringJoin@Riffle[Drop[StringSplit[UsingFrontEnd@Import[$CommandLine[[5]], \"Text\"],\"\n\"], 3], \"\n\"];Quit[];" %0 %* exit Print[$CommandLine[[6;;]]]; Pause[5];



Top 50 recent answers are included