home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / next / software / 3305 < prev    next >
Encoding:
Text File  |  1993-01-06  |  3.5 KB  |  98 lines

  1. Newsgroups: comp.sys.next.software
  2. Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!usc!venice!gumby.dsd.trw.com!deneva!news
  3. From: kieffer@spf.trw.com (Robert Kieffer)
  4. Subject: Re: Whither jot?
  5. Message-ID: <2B4B307D.4863@deneva.sdd.trw.com>
  6. Sender: news@deneva.sdd.trw.com
  7. Organization: TRW Inc., Redondo Beach, CA
  8. References: <1if6foINN7to@emory.mathcs.emory.edu>
  9. Date: Wed, 6 Jan 93 19:18:20 GMT
  10. Lines: 86
  11.  
  12. In article <1if6foINN7to@emory.mathcs.emory.edu> joe@mathcs.emory.edu (Joe  
  13. Christy) writes:
  14. > I've always been a fan of jot and have quite a few notes that I've
  15. > always managed in jot. In NeXTStep 3.0, jot has vanished from
  16. > /usr/bin, but there are the undocumented (as far as I can tell) check
  17. > boxes in the Target Inspector Services panel of the Librarian. My
  18. > question is how do they work? Can I emulate the old behavior of jot,
  19. > i.e. writing a free from note into an automagically numbered file in a
  20. > directory of my choosing, which is indexed in Librarian. I tried
  21. > experimenting with checking the box and invoking the service from
  22. > Edit, but as far as I can see, nothing happened.
  23. > Joe Christy   |      Head of Mathematical Computing      | Two wrongs
  24. > joe@msri.org  | Mathematical Sciences Research Institute | don't make a  
  25. right,
  26. > (510)643-6069 |          1000 Centennial Drive           | but three  
  27. lefts do
  28. > **************|           Berkeley, CA 94720             |**************
  29.  
  30. I too was a user of jot in 2.1. 'twas said to see it go.  One complaint I  
  31. had with it, however, was that the file names (i.e. the date of creation)  
  32. didn't tell you anything about the contents of the file... a real hassle  
  33. when trying to clean stuff up.
  34.  
  35. The only capacity that I used jot was to copy stuff from the pasteboard  
  36. into my JotFolder... I put together the alias and shell script below to  
  37. emulate that functionality (and suplement it a little)
  38.  
  39. Here's how it works:
  40.  
  41. "pjot filename" - copies pasteboard into "filename" in your jot folder
  42.  
  43. "pjot index" - reindexes your jot folder
  44.  
  45. "pjot review search_string" - Lets you view all files that match the  
  46. search string (which should have double quotes around it if it has  
  47. wildcards in it.) Also lets you optionally rename a file. To review all  
  48. files use:
  49.     pjot review "*"
  50.  
  51. Hope you find this useful.
  52.  
  53. Robert Kieffer
  54. kieffer@spf.trw.com
  55. --------------------------- The alias ----------------------------------
  56. alias pjot "pushd ~/JotFolder;pjot.src \!*; popd
  57.  
  58. --- pjot.src (must be in JotFolder and have executable permissions) ----
  59. #!/bin/csh
  60. if ($1 == "index") then
  61.   echo "pjot: Updating index..."
  62.   ixbuild
  63. else if ($1 == "review") then
  64.   foreach i ($2)
  65.     echo "File:" $i
  66.     echo "  Display contents [change file name]? (y or n, q to quit)"
  67.     set answer = $<
  68.     if ($answer == "y") then
  69.       echo "==============================================="
  70.       more $i
  71.       echo "==============================================="
  72.       echo "New name? (return = no change)"
  73.       set newname = $<
  74.       if ($newname != "") then
  75.         if (-e $newname) then
  76.           echo "Name in use. Continue? (y or n)"
  77.           set cont = $<
  78.           if ($cont == "y") then
  79.             mv $i $newname
  80.             echo "Moved $i to $newname"
  81.           endif
  82.         else
  83.           mv $i $newname
  84.           echo "Moved $i to $newname"
  85.         endif
  86.       endif
  87.     else if ($answer == "q") then
  88.       break
  89.     endif
  90.   end
  91. else if (-e $1) then
  92.   echo "pjot: Title already in use."
  93. else
  94.   paste > $1
  95. endif
  96.