On AFNI startup, I wanna simultaneously open 2 controllers with different underlay datasets displayed. I did so manually and saved the layout as a “script” file. Suppose the file name of this script is “a.script”, how can I execute it on AFNI startup? I have tried “afni -com a.script”, but it doesn’t work with an error message of “ERROR: Can’t drive AFNI with ‘a.script’”.
If you wanted to, you could use the scripts to enter file names on the command line and to pass the file names to the commands, that way having a flexible tool. But if you have consistent names, then you could put static names after the SWITCH_UNDERLAY option.
Thank you Paul for this prompt response!
Actually what I meant to ask was whether there is a SINGLE option that can read in a lot of command lines saved in a script file. Including many specifications of window positions, my script file has tens of lines but I want to avoid typing tens of “-com”.
The
National Institute of Mental Health (NIMH) is part of the National Institutes of
Health (NIH), a component of the U.S. Department of Health and Human
Services.