spacer

Windows: Firefox

Batch files

For windows (version Windows 2000 or later) you need to generate the following two text files using Notepad. You can use Word, but must save the files in "Plain text" format.

rasstart.bat

"C:\Program Files\RasWin\raswin.exe" -pdb "%~1"

rasscriptstart.bat

"C:\Program Files\RasWin\raswin.exe" -script "%~1"

where the path gives the name and location of the RasMol executable file.

Defining MIME types

Unfortunately Firefox does not have a good way of editing MIME types, so you need to add this feature by downloading the MIME editor from:

MIME-edit for Firefox v.3.

You may then have to drag the donwloaded xpi onto the browser window. This will give you a MIME Edit entry in the browser's Tools menu and you can then edit the mime types as below.

i. MIME type chemical/x-pdb

  1. Click on the Edit tab.
  2. Click on New type and then fill in the form as follows:
    • MIME Type: chemical/x-pdb
    • Description: PDB files
    • Extension: pdb, ent
  3. Click on Open it with: and then click on the Choose... button.
  4. Navigate to the directory containing the two script files you created above and select rasstart.bat. (You may need to type in the name if it doesn't appear in the file listing). Click Open.
  5. Click OK in the bottom right hand corner of the "New Type" window and your new MIME-type will be added to the list.

ii. MIME type chemical/x-ras

  1. Click on the Edit tab.
  2. Click on New type and then fill in the form as follows:
    • MIME Type: chemical/x-ras
    • Description: RasMol scripts
    • Extension: ras, pl
  3. Click on Open it with: and then click on the Choose... button.
  4. Navigate to the directory containing the two script files you created above and select rasscriptstart.bat. (You may need to type in the name if it doesn't appear in the file listing). Click Open.
  5. Click OK in the bottom right hand corner of the "New Type" window and your new MIME-type will be added to the list.

iii. MIME type application/x-rasmol

  1. Click on the Edit tab.
  2. Click on New type and then fill in the form as follows:
    • MIME Type: application/x-rasmol
    • Description: RasMol scripts (2)
    • Extension: rasmol, pl
  3. Click on Open it with: and then click on the Choose... button.
  4. Navigate to the directory containing the two script files you created above and select rasscriptstart.bat. (You may need to type in the name if it doesn't appear in the file listing). Click Open.
  5. Click OK in the bottom right hand corner of the "New Type" window and your new MIME-type will be added to the list.
Roman Laskowski and Nicholas Keep, May 2010 spacer
spacer