Adding henriks texworks scripts
Go to the directory:
cd ~/.Texworks
checkout henriks git repo (https://github.com/henrikmidtiby/TeXworks-scripts)
git clone https://github.com/henrikmidtiby/TeXworks-scripts.git
rename/delete existing scripts folder and rename the created folder “TeXworks-scripts” to “scripts”
in texworks choose scripts->Scripting texworks-> reload script list
Soem of the scripts may not work if texworks isnt the newest version