Configuring your browser for RasMol |
Firefox |
Firefox requires.
On unix set up the following files using your favourite text editor
rasstart.com
#!/bin/csh
xterm -e rasmol -pdb $1
rasscriptstart.com
#!/bin/csh
xterm -e rasmol -script $1
and make them executable 'chmod +x *.com'
In windows you need to generate these two files as text using notepad
rasstart.bat
cd /D C:\TEMP
"c:\Program Files\rasmol\raswin.exe" -pdb "%~1"
rasscriptstart.bat
cd /D C:\TEMP
"c:\Program Files\rasmol\raswin.exe" -script "%~1"
Note this is windows 2000 or later. Windows 98 has less sophisticated versions of commands so for that try
cd C:\TEMP
"c:\Program Files\rasmol\raswin.exe" -pdb %1 or -script %1
Obviously if your copy of rasmol is in a different directory or has a different name then use that. C:\TEMP should be the directory that netscape downloads temporary files to. Try downloading a file and saving it and see what directory it goes to.
Unfortunately firefox does not have a good way of editing MIME types as installed so you need to add this feature by downloading MIME editor https://addons.mozilla.org/en-US/firefox/addon/4498 for version 2. The unofficial version for Firefox 3 at the time of writing is http://space.geocities.jp/alice0775/STORE/mime_edit-0.600809120100.xpi. You may then have to drag the donwloaded xpi onto the browser window. This then give a MIME Edit menu under tools and you can then edit the mime types as below.
Repeat the following steps for each of the three MIME types you are defining:-