How to set up your computer:
Create a folder where to store all your scripts. They can be organized into subfolders.
Choose iNMR > Preferences. Select the first panel of the dialog.
Click the button choose on the right. A standard Choose File dialog appears.
Select the folder you have created at step 1. The path appears into the Preferences dialog.
The following steps are optional:
You can define from 0 to 8 shortcut buttons that will appear into the console.
The name of a button will the same as the name of the corresponding script, without the extension.
Write the list of shortcuts, at the bottom of the preferences dialog, separated by spaces.
If the script resides into a subfolder, prepend the name of the subfolder and a slash, ex.:
subfolder/name
.
To define your own functions, to initialize some variables and to have some commands performed every time you open the console, write the necessary code into a lua file called Lua.init and place it at the top level of the folder. This file can be as long and complex as you need.
If you wish to write scripts of your own, we suggest using external editors like Notepad++ or EditPad Lite on Windows, TextWrangler or Smultron on the Mac.
To learn the Lua language, there's nothing better than the word of its creator.