Configuring Netscape for RasMol
Configuring your browser for RasMol
|
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
- Click on Edit
- Click on New type and fill in the form as follows:-
- Description: PDB files
- File extension: pdb, ent
- MIME Type: chemical/x-pdb
- Open it with: and press the Choose... button.
- Navigate to the directory containing scripts you wrote above
- Select
rasstart.com or .bat and click Open.
- Click OK in the bottom right hand corner of the "New Type" window.
ii. MIME type chemical/x-ras
- Click on Edit
- Click on New and fill in the form as follows:-
- Description: RasMol scripts
- File extension: ras, pl
- MIME Type: chemical/x-ras
- Open it with: and press the Choose... button.
- Navigate to the directory containing scripts you wrote above
- Select
rasscriptstart.com or .bat and click Open.
- Click OK in the bottom right hand corner of the "New Type" window.
iii. MIME type application/x-rasmol
- Click on Edit
- Click on New and fill in the form as follows:-
- Description: RasMol scripts (2)
- File extension: rasmol, pl
- MIME Type: application/x-rasmol
- Open it with: and press the Choose... button.
- Navigate to the directory containing scripts you wrote above
- Select
rasscriptstart.com or .bat and click Open.
- Click OK in the bottom right hand corner of the "New Type" window.
Copyright © Birkbeck College 1996-2015