[net.micro.mac] word/count DA question

donch@teklabs.UUCP (Don Chitwood) (02/19/86)

I recently acquired the "word/count DA" from the local Mac User Group
(PMUG in Portland, OR--excellent group!!).  I installed it on my MacWrite
system disc and am unable to use it.

When I call it up, I click on the response box "count".  This results in
a mini-finder type display with nothing in it. Presumably, one would click
on a file listed in the "mini-finder" menu, and the count would proceed.
I've tried all combinations of selecting files in the finder or with MacWrite
open, to no avail.  

What am I missing?  It's probably gawd-awful simple.

Thanks in advance.

Don Chitwood
Teklabs
Tektronix, OR

rfl@oddjob.UUCP (Bob Loewenstein) (02/21/86)

I believe the minifinder filters all but text files. So, if you have
no text file on your disk, you will see blank in the minifinder.
 

borton@sdcc3.UUCP (Chris Borton) (02/22/86)

In article <3284@teklabs.UUCP> donch@teklabs.UUCP (Don Chitwood) writes:
>I recently acquired the "word/count DA" from the local Mac User Group
>(PMUG in Portland, OR--excellent group!!).  I installed it on my MacWrite
>system disc and am unable to use it.
>
>When I call it up, I click on the response box "count".  This results in
>a mini-finder type display with nothing in it. Presumably, one would click
>on a file listed in the "mini-finder" menu, and the count would proceed.
>I've tried all combinations of selecting files in the finder or with MacWrite
>open, to no avail.  

It only works with text files.  Save your file as Text Only under a different
name and then use it.  

I remember this coming over the net a long time ago; might someone interest
themselves in extending it for MacWrite files?  I find it very useful, but a
hassle in that I have to save the file each time twice.

--chris

Chris Borton, UC San Diego Undergraduate CS	
Micro Consultant, UCSD

borton@ucsd.ARPA  or  
...!{ucbvax,decvax,noscvax,ihnp4,bang}!sdcsvax!borton

pehaxell@watnot.UUCP (Penny Haxell) (03/03/86)

In article <3173@sdcc3.UUCP> borton@sdcc3.UUCP (Chris Borton) writes:
>In article <3284@teklabs.UUCP> donch@teklabs.UUCP (Don Chitwood) writes:
>>I recently acquired the "word/count DA" from the local Mac User Group
>>(PMUG in Portland, OR--excellent group!!).  I installed it on my MacWrite
>>system disc and am unable to use it.
>>
>>When I call it up, I click on the response box "count".  This results in
>>a mini-finder type display with nothing in it. Presumably, one would click
>>on a file listed in the "mini-finder" menu, and the count would proceed.
>>I've tried all combinations of selecting files in the finder or with MacWrite
>>open, to no avail.  
>
>It only works with text files.  Save your file as Text Only under a different
>name and then use it.  
>
>I remember this coming over the net a long time ago; might someone interest
>themselves in extending it for MacWrite files?  I find it very useful, but a
>hassle in that I have to save the file each time twice.

Word/count works with Microsoft Word files as well as with text files.

dubois@uwmacc.UUCP (Paul DuBois) (03/04/86)

> >I remember this coming over the net a long time ago; might someone interest
> >themselves in extending it for MacWrite files?  I find it very useful, but a
> >hassle in that I have to save the file each time twice.

> Word/count works with Microsoft Word files as well as with text files.

I have just written a wordcount DA that works with either MacWrite or
TEXT files.  It also has a grep in it that allows '^', '$', '[..]',
'[^..]', '.' and '*' metachars, does normal or -v printing, and also
works on both types of files.  Is there any interest in a posting?
It's about 9K.

It's written in Rascal (the new version).

-- 
                                                                    |
Paul DuBois     {allegra,ihnp4,seismo}!uwvax!uwmacc!dubois        --+--
                                                                    |
                                                                    |

borton@sdcc3.UUCP (Chris Borton) (03/05/86)

In article <2015@uwmacc.UUCP> dubois@uwmacc.UUCP (Paul DuBois) writes:
>
>I have just written a wordcount DA that works with either MacWrite or
>TEXT files.  It also has a grep in it that allows '^', '$', '[..]',
>'[^..]', '.' and '*' metachars, does normal or -v printing, and also
>works on both types of files.  Is there any interest in a posting?
>It's about 9K.
>

Please post it!  I find 'wc' very useful, and this would be better.  The
grep is a real bonus!

--chris
-------
Chris Borton, UC San Diego Undergraduate CS	
Micro Consultant, UCSD

borton@ucsd.ARPA  or  
...!{ucbvax,decvax,noscvax,ihnp4,bang}!sdcsvax!borton

bono@dartvax.UUCP (Christopher North) (03/06/86)

> > >I remember this coming over the net a long time ago; might someone interest
> > >themselves in extending it for MacWrite files?  I find it very useful, but a
> > >hassle in that I have to save the file each time twice.
> 
> > Word/count works with Microsoft Word files as well as with text files.
> 
> I have just written a wordcount DA that works with either MacWrite or
> TEXT files.  It also has a grep in it that allows '^', '$', '[..]',
> '[^..]', '.' and '*' metachars, does normal or -v printing, and also
> works on both types of files.  Is there any interest in a posting?
> It's about 9K.
> 
> It's written in Rascal (the new version).
> 
> -- 
>                                                                     |
> Paul DuBois     {allegra,ihnp4,seismo}!uwvax!uwmacc!dubois        --+--
>                                                                     |
>                                                                     |

*** REPLACE THIS LINE WITH YOUR MESSAGE ***
I need something like that!

lee@wang.UUCP (Lee Story x77155 ms 1989) (03/21/86)

[for the line-eater]

This is not exactly a reply to the above, but I do look forward to
trying Paul Dubois's program....

I downloaded the grep utility to our Vax with the vnews "s" command,
then uploaded to the Mac with umodem (on Unix V5, trying both the -sb
and -st options) to Red Ryder 7.0.

Since the only BinHex version I've seen on CS or UseNet in quite
a while is version 5 (and it was the only one I had), that's what
I used to reconstruct the Mac file.  Why do the recent postings to
net.sources.mac generally say to convert with BinHex 4 ?

The resulting files (plural, trying various umodem and BinHex options) all
seems (from a Fedit examination) to be the same; they had only a resource
fork, and were NOT applications.  Okay, so I changed their type to APPL,
using Fedit, and tried to launch each.  They all crashed immediately.  C'mon
experts, hypothesize.  What am I missing in this ugly chain of transmission
and conversion utilities?

1) A problem with the Unix-to-Macintosh CR/NL mess?
2) Wrong version of BinHex? (in which case where's the right one?)
3) Is it not supposed to be directly executable?? (what's Rascal??  Do I
    need to run under MacPascal or something??)
4) How about a small, PERMANENT file at UseNet nodes explaining the
    download process to mere mortals?  (Yes, I know the files cycle out
    of individual nodes after so many others have arrived, but it could
    be regularly reposted to the moderated group.)  CompuServe forums do
    such things.

Lee Story
Wang Laboratories

lee@wang.UUCP (Lee Story x77155 ms 1989) (03/21/86)

> [for the line-eater]
> 
Sorry about my posting re the grep DA.  As soon as I discovered it was
a DA & installed it, it worked just fine.  To me: "Read the documentation,
jackass!"  Please no flames even tho I deserve them.

It's a nice DA to have.  I sure wish "save output" worked from the Finder.

 Lee Story
 Wang Laboratories

jimb@amdcad.UUCP (Jim Budler) (03/22/86)

In article <778@wang.UUCP> lee@wang.UUCP (Lee Story x77155 ms 1989) writes:
>[for the line-eater]
>
>This is not exactly a reply to the above, but I do look forward to
>trying Paul Dubois's program....
>
>I downloaded the grep utility to our Vax with the vnews "s" command,
>then uploaded to the Mac with umodem (on Unix V5, trying both the -sb
>and -st options) to Red Ryder 7.0.
>
>Since the only BinHex version I've seen on CS or UseNet in quite
>a while is version 5 (and it was the only one I had), that's what

BinHex5 creates an eight bit file which may get munged across Usenet,
BinHex4 creates a seven bit encoded file. So Usenet stayed with
BinHex4.  BinHex5 can decode, but not encode the previous versions.

>I used to reconstruct the Mac file.  Why do the recent postings to
>net.sources.mac generally say to convert with BinHex 4 ?
>
>The resulting files (plural, trying various umodem and BinHex options) all
>seems (from a Fedit examination) to be the same; they had only a resource
>fork, and were NOT applications.  Okay, so I changed their type to APPL,

Right, it's a DA. creator DMOV type DFIL. Use the font/DA Mover from Apple
to install it in your system.

-- 
 Jim Budler
 Advanced Micro Devices, Inc.
 (408) 749-5806
 Usenet: {ucbvax,decwrl,ihnp4,allegra,intelca}!amdcad!jimb
 Compuserve:	72415,1200

dubois@uwmacc.UUCP (Paul DuBois) (03/24/86)

> Sorry about my posting re the grep DA.  As soon as I discovered it was
> a DA & installed it, it worked just fine.  To me: "Read the documentation,
> jackass!"  Please no flames even tho I deserve them.
> 
> It's a nice DA to have.  I sure wish "save output" worked from the Finder.

You're not the only one who has said this.  I'll post my motivation
for it publicly so other people who disagree can take shots at me and maybe
make me change my mind  (...did I say that?  Naw!  I'm a fundamentalist,
so I *can't* change my mind!! :-).

I noticed a while back that Extras wouldn't let me delete files from
the Finder.  More recently, newer versions of  DiskInfo (ones that delete
files) also won't let you clobber files from the Finder.  I take this
behavior to mean that it's not nice to create or delete files while in 
the Finder, since it won't know about them, and therefore won't really
have knowledge of the correct state of the desktop.

Is it correct to prohibit such things?  If not, why not?  I'd just as
soon take out the relevant code (leaves smaller DA), but having inferred
that it was more proper to include it, I put it in.

-- 
                                                                    |
Paul DuBois     {allegra,ihnp4,seismo}!uwvax!uwmacc!dubois        --+--
                                                                    |
Doth the hawk fly by thy wisdom, and stretch her wings              |
toward the south?                        Job 39:26