How to use NimBank Tool script


This is just some examples to use the NimBank Tool...
This tool is a command line script (no gui). So use your terminal...
The last NimBank script is here.
On windows Python3 is not installed with the OS. I don't use Windows so I can't help you to install Python but there's a lot of tutorial on the web...
On macOS Monterey Python3 is already installed.
Launch a terminal and launch NimBank.
  • Select the NimBank.py files and drop to the terminal
You can have sometink like that :
$ python3 /Users/me/Downloads/NimBank.py 
NiMBank v4 - Odie Research.
Use 'NiMBank.py -h' for help
Ok, NimBank work fine...

The difference between Product, Bank and Sub-bank.



Modify or add the Author, Vendor and Comment

Modify or add Author, Vendor and Commentto Maschine and Massive files in a folder
python3 NiMBank.py -a "TheAuthor" -v "IamtheVendor" -c "My Great Comment" /files_folder/*

Add Product, Bank and Sub-bank

I want to add The Product name "Louis", Bank name "Drums" ans Sub-bank "Casio" to all Files in folder /files_folder
python3 NiMBank.py -p "Louis" -b "Drums" -s "Casio" /files_folder/*

Clear the Bank Information

Clear the Bank information to Machine and Massive files in the folder /files_folder
Clear the Bank information clear automatically the Sub-bank information.
python3 NiMBank.py -b "" /files_folder/*

Organise your Maschine and Massive files

With the python script NiMBank.py and OSX/Linux shell, you can organise your Maschine & Massive File.

Exemple : you have a lot of Massive file in the folder "MyMassiveFile" and you want to move all Massive file with Bank name "MyBank" to the folder "MyBankFolder".
python3 NiMBank.py --list "csv" /MyMassiveFile/* | awk -F ";" '{if (match($6,"MyBank") > 0) print "mv \"" $1 "\" \"/MyBankFolder\"" }' | sh
or
cd /MyBankFolder
python3 NiMBank.py --list "csv" /MyMassiveFile/* | awk -F ";" '{if (match($6,"MyBank") > 0) {cmd="mv \""$1"\" \".\""; system(cmd)} }' 

Create a CSV files informations

Create a CSV file with your Massive file information (file, name, author, vendor, ...).
python3 NiMBank.py --list "csv" /MyMassiveFile/* > MyResult.csv

Rename...

Rename Massive Filenames with the name of Massive presets
python3 NiMBank.py --list "csv" /MyMassiveFile/* | awk -F ";" '{print "cp \"" $1 "\" \""$2".nmsv\"" }' | sh
Rename the Massive or FM8 presets with the name of Massive or FM8 Filenames and do it for all files in the folder myfolder
for fullfile in myfolder/*; do filename=$(basename "$fullfile"); filename="${filename%.*}"; python3 NiMBank.py -n "$filename" "$fullfile"; done