home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / wvwar062.zip / doc / x / helper-scripts / mswordviewsh < prev    next >
Text File  |  2000-09-20  |  1KB  |  35 lines

  1. #!/bin/sh
  2. # This file should be called $HOME/bin/mswordviewsh
  3. # It is meant to be called from within Netscape Mail (when clicking on an
  4. # attachment that's a Microsoft Word version 8 document).
  5. # If you have the mswordview program installed locally, then either modify
  6. # or remove the PATH= statement. If you're using the /freeware version, then
  7. # the statement is required as the mswordview program calls another freeware
  8. # utility.
  9. # In order for netscape to be be aware of the script, you need to edit your
  10. # netscape preferences: expand navigator and select Applications and go down
  11. # to 'Microsoft Word Document' press the edit button and then press the
  12. # Application: radio button and fill in the field with:
  13. # $HOME/bin/mswordviewsh %s
  14. # In order to be able to "click" on the word 8 attachment, you will need to
  15. # select within netscape mail from the "View" pull-down Attachments -> As Links
  16. # vs. Inline
  17.  
  18. #this came from saggerer@zk3.dec.com
  19.  
  20. export PATH
  21.  
  22. PATH=$PATH:/freeware/bin
  23.  
  24. umask 077
  25.  
  26. DOC=$1
  27.  
  28. wvWare $DOC > $DOC.html
  29.  
  30. netscape -remote "openURL(file:$DOC.html)"
  31.  
  32. sleep 5
  33.  
  34. rm $DOC.html
  35.