home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / url_util.zip / README.TXT < prev   
Text File  |  1997-07-16  |  4KB  |  80 lines

  1.     Three utilities for your slrn URL browsing pleasure from
  2. pardoz@io.com.  Last modified July 16, 1997.
  3.  
  4.     Geturl.cmd and downurl.cmd are designed for offline Web browsing
  5. from slrn.  Geturl appends a URL to an HTML file suitable for use as a
  6. bookmark file in your Web browser next time you go online; downurl
  7. creates (or appends to) a file of URLs to be downloaded using sslurp -
  8. the files can then be loaded into your favourite browser when you're
  9. offline, which can be useful reducing online charges (see the sslurp
  10. documentation for more details on using the program and the .CMD file
  11. itself for more information on where to find sslurp) or downloading Web
  12. large pages or files in the middle of the night.
  13.  
  14.     Picker.sl is an S-Lang macro that allows you to choose which Web
  15. browser you want to invoke from slrn.  To install it either copy it to
  16. your slrn directory and add
  17. interpret picker.sl
  18. to your slrn.rc file or append the contents of the file to the end of
  19. your existing slrn.sl file.
  20.  
  21.     MODIFYING PICKER.SL
  22.  
  23.     The first part you may wish to modify looks like this:
  24.  
  25.      rsp = select_list_box ("Select Browser:",
  26.         "Lynx", "Bookmark", "Download", 3,
  27.         2);
  28.  
  29.     "Lynx", "Bookmark", and "Download" are the three default browsers.  If
  30. you wish to change one replace the name in quotation marks with the new
  31. name (and see below) - for example if you wish to use Netscape instead
  32. of Lynx change the first value to "Netscape".  The '3' is the number of
  33. options to choose from - if you wish to use more or fewer choices,
  34. modify the number appropriately (for example if you wish to use these
  35. three choices plus Netscape change the '3' to a '4').  The '2' is the
  36. default value you will be presented with in the listbox, currently
  37. corresponding to "Bookmark".  Changing this value to '1' would make
  38. Lynx the default browser to invoke.
  39.  
  40.     The other part you may wish to modify is the section reading:
  41.  
  42.          switch (rsp)
  43.         { case "Lynx" : browservbl = "lynx2.cmd %s" }
  44.         { case "Bookmark" : browservbl = "echo %s | geturl.cmd > nul" }
  45.         { case "Download" : browservbl = "echo %s | downurl.cmd > nul" }
  46.  
  47.      In case you're curious about lynx2.cmd, it looks like this:
  48.      @echo off
  49.     REM Set up appropriate environment variables for Lynx
  50.     set home=e:\lynx2
  51.     set tmp=e:\lynx2
  52.     set terminfo=e:\lynx2\terminfo
  53.     set term=ansi-color-2
  54.     set lynx_config=e:\lynx2\lynx.cfg
  55.     REM Change to the Lynx directory
  56.     cd \lynx2
  57.     REM Start Lynx with the selected URL in a separate window in the
  58.     REM background and close the window when Lynx exits
  59.     start /C /B e:\lynx2\lynx.exe %1
  60.  
  61.     If you modified one or more of the values above, make the same
  62. changes here.  For example if you replaced "Lynx" with "Netscape" in
  63. the first section replace { case "Lynx" ...} with { case "Netscape"
  64. ...}  and change the "lynx2.cmd %s" to "netscape.cmd %s" or something
  65. similar, where netscape.cmd looks something like this:
  66.  
  67.     cd \netscape
  68.      start netscape %1
  69.  
  70.     If you added or removed a browser in the first section make
  71. appropriate changes here.  For example if you changed the selection box
  72. to give you four choices (Lynx, geturl, downurl, and Netscape) this
  73. section should look like this:
  74.  
  75.          switch (rsp)
  76.         { case "Lynx" : browservbl = "lynx2.cmd %s" }
  77.         { case "Bookmark" : browservbl = "echo %s | geturl.cmd > nul" }
  78.         { case "Download" : browservbl = "echo %s | downurl.cmd > nul" }
  79.        { case "Netscape" : browservbl = "netscape.cmd %s" }
  80.