3
votes
Passing negative parameters to a wolframscript
I have found the solution myself. In fact it is similar to the other answer by Syed.
I have found that ( and ) have a special ...
2
votes
Passing negative parameters to a wolframscript
With a minor change to the script:
arg=ToExpression/@Most@Rest@$ScriptCommandLine;
file=Last[$ScriptCommandLine];
Export[file,arg];
Use:
...
1
vote
Accepted
Is there a way to make WolframScript give outputs as a single line?
You should use InputForm:
...
1
vote
Accepted
Way to stop reading script file based on conditions, without an "if" block wrapping the entire file
A more WL-like way of doing this, would be to write a function that makes the definitions and put a condition on that function. Something like:
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
scripting × 339command-line × 39
plotting × 19
front-end × 18
export × 18
kernel × 14
files-and-directories × 13
notebooks × 12
packages × 12
linux × 12
parallelization × 10
graphics × 9
list-manipulation × 8
output-formatting × 8
mac-os-x × 8
external-calls × 8
mathematical-optimization × 7
output × 7
windows × 7
code-review × 6
wolfram-alpha-queries × 6
free-wolfram-engine × 6
differential-equations × 5
functions × 5
bugs × 5