home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / yep16.zip / yepU.doc < prev    next >
Text File  |  1997-04-09  |  8KB  |  184 lines

  1. The YEPu REXX Scripts -- for working with Yep URL Capture Logs
  2. ==============================================================
  3.  
  4. All of the following scripts are REXX programs. This means they are plain
  5. text command files which you can edit or modify. All of the scripts (except
  6. YEPuFOLD) all you to specify a "default" Url Log in the script. This would
  7. save you typing the path and filename of the Url Log which you want to
  8. process on the command line each time. 
  9.  
  10. The way to change the "default" Url Log is to load the REXX script into 
  11. a text editor. Near the beginning of the file you will see a line which 
  12. looks like this:
  13.  
  14.     UrlLog = 'c:\osu\yarn\url.log'
  15.     
  16. You may modify the above line to specify any default Url Log you want that
  17. script to use. Some scripts have other values (always immediately beneath
  18. the "UrlLog" value) which can be edited. At the beginning of each script
  19. there are some comments which give you tips about how to use that script.
  20. Some specific instructions and descriptions of the scripts follow:
  21.  
  22. If you write or improve any scripts for working with Yep Captured URLs, 
  23. please let me know!
  24.  
  25. Note: the yepU scripts may not work with Object REXX as expected.
  26.  
  27.  
  28. YEPuSTAT
  29. ========
  30.  
  31. This program will run through the specified Yep URL Capture Log and report
  32. to you the number of records (unique and duplicate) in it. As well it will
  33. tell you the message date on the first and last record. With this script
  34. you can quickly see an overview of your URL Capture Log.
  35.  
  36. You can specify a default Capture Log filename near the beginning of
  37. the rexx script, or specify one on the command line.
  38.  
  39.  
  40.  
  41.  
  42. YEPuDUPE
  43. ========
  44.  
  45. This program runs through the specified Yep URL Capture Log and extracts
  46. all the unique URLs, therefore eliminating duplicates. 
  47.  
  48. You can specify a "default" Capture Log filename near the beginning of the
  49. rexx script, or specify one on the command line. Also you will want to 
  50. edit the path and filename to the backup file on the line that looks like
  51. this:
  52.  
  53.     UrlLogBackUp = 'c:\osu\yarn\url.bak' 
  54.  
  55. The original Url Log will be backed up and then the Url Log updated
  56. (over written) automatically.  Example:
  57.  
  58.     YEPuDUPE urlcap.Log 
  59.  
  60. This is a good script to run in your Yarn batch file (if you have one)
  61. after you exit Yarn each time. It's pretty quick, and will keep dupes
  62. trimmed. If you are capturing a lot of URLs perhaps YEPuMAX would be
  63. better for you though.
  64.  
  65.  
  66. YEPuMAX
  67. =======
  68.  
  69. This script will output only the latest specified number of entries in the
  70. Yep URL Capture Log. This could be useful to keep the log trimmed down
  71. to a certain size, deleting the oldest captured URLs.
  72.  
  73. You may change the "default" values for the Url Log filename and number of
  74. URLs to keep near the beginning of the script. To edit the default number
  75. of URLs to keep, and the filename and path to the backup file look for 
  76. these lines near the beginning of the script:
  77.  
  78.     UrlLogBackup = 'c:\osu\yarn\url.bak'
  79.     Keep = 100
  80.     
  81. Otherwise you can use the command line, first specifying the URL Log
  82. filename, and then the number of entries to keep. 
  83.  
  84.     YEPuMAX url.log 50 
  85.  
  86. YEPuMAX also filters out duplicate URLs. So if you run this script you
  87. should not need to run YEPuDUPE as well.
  88.  
  89. This would work good run in a batch file each time yarn exits (if you are
  90. set up that way).
  91.  
  92.  
  93. YEPuHTML
  94. ========
  95.  
  96. This script will take the data from the specified Yep URL Capture Log and
  97. convert it into a formatted HTML document. The HTML document will list
  98. all the captured URL information in a numbered (ordered) list, and have
  99. links to each URL. This HTML file can be loaded into any WWW Browser and
  100. used to explore your captured URLs.
  101.  
  102. You can specify a default Capture Log filename near the beginning of
  103. the rexx script, or specify one on the command line.
  104.  
  105. Use Standard Output Redirection to create a new file with only unique
  106. URLs (duplicates are filter out of the HTML file).
  107.  
  108.     YEPuHTML > NewUrls.html
  109.  
  110. If you are using Netscape/2, or other browser with bookmarks, you could
  111. make a bookmark to your "NewUrls.html" and have quick access to it
  112. all the time. If you are using WebExplorer you can load the NewUrls.html
  113. into the program and then drag and drop the page (URL object) into
  114. A folder for quick access.
  115.  
  116.  
  117. *YEP2HTML*
  118.  ========
  119.  
  120. This is a script written by Phil Crown (http://web2.airmail.net/pcrown)
  121. to convert YEP Url logs into HTML in a slightly different way. You may
  122. want to try it out!
  123.  
  124.     
  125. YEPuFOLD
  126. ========
  127.  
  128. This is by far the most complex script. It will create a folder (if it
  129. doesn't already exist) on your OS/2 desktop, and populate it with Web
  130. Explorer URL Objects. These objects can be then opened with Web Explorer,
  131. by dragging and dropping them on a running Web Explorer (to load the URL
  132. Web page into it), or a Web Explorer icon (to open a new instance of Web
  133. Explorer with the URL of the URL object).
  134.  
  135. You can specify a default Capture Log filename near the beginning of
  136. the rexx script, or specify one on the command line.
  137.  
  138. All the URL information from the Yep URL Log is moved to the COMMENT area
  139. of the Web Explorer URL, for reference. The COMMENT area is on "page 3" of
  140. the object's Settings|File notebook. The data is a bit of a mess due to the
  141. small text area being word-wrapped, but it is readable, and can be copied
  142. to the clipboard and pasted elsewhere with it's correct format, if need be.
  143.  
  144. Duplicate URL's are automatically filtered from the URL Capture Log during
  145. the Object creation process.
  146.  
  147. This is all not extremely elegant. It is somewhat of a make-shift hack job.
  148. But here are some tips that may help you deal with Yep URL Folder Objects.
  149. (If anyone wants to rewrite the script to make it more flexible and better,
  150. by all means, don't let me stop you!)
  151.  
  152. Tips for URL Objects:
  153. ~~~~~~~~~~~~~~~~~~~~
  154. Each object is created using the URL address for it's name. This can be
  155. messy and confusing. However, if you rename an URL in the folder then the
  156. next time YEPuFOLD is run it will create another instance of the object.
  157.  
  158. One way to perhaps deal with this is to leave the objects in the Yep Urls
  159. folder alone. Make copies of the URLs you want to keep to another folder
  160. and rename them to something more easily identifiable there; or after
  161. access an URL from the Yep Urls folder which you want to keep, drag a copy
  162. of the URL from Web Explorer to another folder.
  163.  
  164. Remember you can sort your Yep Urls folder by "creation date" and thereby
  165. view them in the order they were captured to the Yep URL Capture Log. The
  166. newest captured URL will be last on the list.
  167.  
  168. "Details View" of the Yep Urls folder may be preferable to some people as
  169. well; as the Object titles tend to be long and can appear confusing when
  170. scattered all over the place.
  171.  
  172. You can create a desktop/folder shadow object for your actual Yep URL
  173. Capture Log and open it with E, or another editor, along side the Yep URL
  174. folder. In this way you can edit the actual log file and delete URLs you
  175. have checked out, or write Comments to go with them, for future reference.
  176. (there is no special format for the Yep URL Capture Log file: entries can
  177. be any length and in any order, just as long as at least one blank line
  178. separates each entry, and there is at least one blank line at the bottom of
  179. the file). Of course now that you have the text file open you can just cut
  180. and paste the URLs into Web Explorer's "open URL" dialog box. <-:
  181.  
  182.  
  183. Good luck with these toys. <-;
  184.