Configuring Netscape for RasMol

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.

Repeat the following steps for each of the three MIME types you are defining:-

i. MIME type chemical/x-pdb

  1. Click on Edit
  2. Click on New type and fill in the form as follows:-

ii. MIME type chemical/x-ras

  1. Click on Edit
  2. Click on New and fill in the form as follows:-

iii. MIME type application/x-rasmol

  1. Click on Edit
  2. Click on New and fill in the form as follows:-
  3. Open it with: and press the Choose... button.
  4. Navigate to the directory containing scripts you wrote above
  5. Select rasscriptstart.com or .bat and click Open.
  6. Click OK in the bottom right hand corner of the "New Type" window.

Copyright © Birkbeck College 1996-2015