[comp.sys.mac] Stuffit & BinHex

milo@ndmath.UUCP (Greg Corson) (11/05/87)

One of the posters awhile back had a great idea and I wanted to make sure
it didn't get missed.  So to the authors of Stuffit....please consider building
in a BinHex step to your program so people can Stuff/hex and Unhex/unstuff
programs all in the same program....

Also...does anyone have a program that will take multiple parts of a BINHEX
posting and put them together?  Someone posted a program like that awhile
back but it didn't work right.  Also, if anyone has a version of the
MACBIN unix program that will allow you to use * to wildcard multiple files
that would be great.  Or still better, a version of binhex that creates
macbinary files directly.

Greg Corson
{pur-ee,rutgers,uunet}!iuvax!ndmath!milo

lih@cunixc.UUCP (11/06/87)

Ray is indeed putting BinHex capability into the next version of
Stuffit.  He is working on it right now and since the BinHex code
is very small < 7K, it should not take up much room in the code...
Maybe now you comp.sys.mac flamers will be satisfied? :-)

Anyway, speaking about BinHex, I probably did the strangest thing
that I ever did before in my computing career...

Ray sent me a message and said that he only had BinHex 5.0 and that
he needed BinHex 4.0 that did 7th bit encoding...so he asked me if
I had it so that I could send it to him..well I did have it.
Well, posting it on a BBS and having him call it would have been
a rather inefficient way of doing it, so what did I do?

Yes, I Stuffed BinHex 4.0 and then BinHexed it..so I BinHexed BinHex
so Ray could dehexify it with 5.0 and then unstuff it.  Well, that
was very logical, but hexifying the very program that you need to
unhexify seems rather odd to me!

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

FFFFF               ^^^^^^^	Andrew "Fuz" Lih
F       ZZZZZZZ     | @ @ |	Computer Consultant
FFFFF        Z      <  ^  >	
F           Z        \ - /	Columbia University
F  U  U    Z          ---	Center for Computing Activities
F  U  U   Z
   UUUU  Z			BITNET: lih@cunixc.columbia.edu	
        ZZZZZZZZ	
			
	"Anarchy may not be the best form of government,
	 but it's better than no government at all."

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
	

chuq@plaid.Sun.COM (Chuq Von Rospach) (11/06/87)

In article <466@ndmath.UUCP> milo@ndmath.UUCP (Greg Corson) writes:
>One of the posters awhile back had a great idea and I wanted to make sure
>it didn't get missed.  So to the authors of Stuffit....please consider building
>in a BinHex step to your program so people can Stuff/hex and Unhex/unstuff
>programs all in the same program....

This in unfortunately unlikely, because USENET is the only system (that I'm
aware of) that requires bitnet (I'm including INFO-MAC in here because it
is really a different form of the same net). Delphi, Compuserve, etc. all
allow 8 bit data transfers and support macbinary, which means that you don't
need the binhex step -- you download it and it's ready to go.

Nice as Usenet is, there isn't much sense in building in support for
something that isn't generally needed. 

chuq
---
Chuq "Fixed in 4.0" Von Rospach			chuq@sun.COM	Delphi: CHUQ

ching@amd.AMD.COM (Mike Ching) (11/06/87)

In article <466@ndmath.UUCP> milo@ndmath.UUCP (Greg Corson) writes:
>Also...does anyone have a program that will take multiple parts of a BINHEX
>posting and put them together?  Someone posted a program like that awhile
>back but it didn't work right.  Also, if anyone has a version of the
>MACBIN unix program that will allow you to use * to wildcard multiple files
>that would be great.  Or still better, a version of binhex that creates
>macbinary files directly.
>
I've been using a script that was posted a while back called
automacbin. It checks any new files in a directory for BinHex and
creates a macbinary file. I added the bhcomb program to the script
and go from multiple part BinHex to macbinary automatically.
I can mail or post it if there's interest.

mike ching
decwrl!amd!ching

steele@unc.cs.unc.edu (Oliver Steele) (11/06/87)

milo@ndmath.UUCP (Greg Corson) writes:
>Also...does anyone have a program that will take multiple parts of a BINHEX
>posting and put them together?

I've put a little shellscript that tries to do this at the end of this
posting.  It's slower than bhcomb and combine (the c programs posted
recently), but not by much, and it's dumber but seems more reliable.

>Also, if anyone has a version of the
>MACBIN unix program that will allow you to use * to wildcard multiple files
>that would be great.  Or still better, a version of binhex that creates
>macbinary files directly.

I'm not sure quite what you're asking for.  nxbin will unbinhex multiple
files if you put more than on one the command line; it's easy enough to
fix the other unbinhexers to do this with something like
	foreach i (*)
		xbin $i
	end
but nothing will catenate the parts of multi-part postings correctly in a
single step.  But I thought binhex DID create macbinary files directly.

------------------------------------------------------------------------------
Oliver Steele				  ...!{decvax,ihnp4}!mcnc!unc!steele
							steele%unc@mcnc.org

  "But remember, it's never too late to take Swahili." -- Peter Wolfenden

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-Cut Here-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
#! /bin/csh -f
# File:		cmb
# Author:	Oliver Steele
# Date:		15 Oct 87
# Purpose:	combine multiple BinHex files
# Usage:	cmb foo.? > foo.hqx

set script = /tmp/comb$$
onintr exit

cat > $script << EOF
BEGIN		{FS = "\0";}
length == 64
/^\(This file must/
/:\$/
EOF

awk -f $script $*

exit:
rm -f $script

dalea@cerebus.UUCP (Dale M. Arends X5706) (11/06/87)

In article <466@ndmath.UUCP> milo@ndmath.UUCP (Greg Corson) writes:
>   ...   ...   ... .  Or still better, a version of binhex that creates
>macbinary files directly.
>
>Greg Corson
>{pur-ee,rutgers,uunet}!iuvax!ndmath!milo

Actually, BinHex 5.0 does exactly that!

-- 
--
		Dale M. Arends  (Fujitsu America Inc., San Jose, Calif.)
		amdahl!cerebus!dalea

The opinions expressed herein do not necessarily reflect those of my employer.
They are entirely my own if they make sense and I disavow them if they don't.

sbb@esquire.UUCP (Stephen B. Baumgarten) (11/07/87)

In article <4632@amd.AMD.COM> ching@amd.UUCP (Mike Ching) writes:
>I've been using a script that was posted a while back called
>automacbin. It checks any new files in a directory for BinHex and
>creates a macbinary file. I added the bhcomb program to the script
>and go from multiple part BinHex to macbinary automatically.
>I can mail or post it if there's interest.

If it's reasonably short, I'm sure a number of people would be interested.
I have an 8-bit line to our Pyramids, so once a program gets to us it can
be stored and downloaded in binary form, cutting transmission time in half.

If you aren't going to post it, how about e-mailing me a copy?

-- 
   Steve Baumgarten             | "New York... when civilization falls apart,
   Davis Polk & Wardwell        |  remember, we were way ahead of you."
   ...!seismo!cmcl2!esquire!sbb |                           - David Letterman

wrp@krebs.UUCP (11/11/87)

>>One of the posters awhile back had a great idea and I wanted to make sure
>>it didn't get missed.  So to the authors of Stuffit....please consider 
building
>>in a BinHex step to your program so people can Stuff/hex and Unhex/unstuff
>>programs all in the same program....
>
>This in unfortunately unlikely, because USENET is the only system (that I'm
>aware of) that requires bitnet (I'm including INFO-MAC in here because it
>is really a different form of the same net). Delphi, Compuserve, etc. all
>
>Nice as Usenet is, there isn't much sense in building in support for
>something that isn't generally needed. 

	SAVE BINHEX!!  Although many networks support 8-bit binary down
loads, I frequently find myself having to download from a host over a
terminal server/ modem / local area netword that does not support 8-bit
transfers.  Here at the University of Virginia, we have an Ungerman-Bass
LAN which will not pass ^S, ^P and who knows what else without an escape
character, and 2400 baud dial-up modems that wil not pass ^S at all.
As long as something is BINHEX'ed, this is not a problem. (BINHEX is also
great for mailing binaries)

Bill Pearson
wrp@virginia.EDU
..!uunet!virginia!wrp

steele@unc.cs.unc.edu (Oliver Steele) (11/13/87)

So, is the Stuffit debate generating more traffic than Stuffit is
saving? :-)

whp@apr.UUCP (Wayne Pollock) (11/14/87)

I read a message from the author of this neat program on GEnie; BinHex will
definitely be in the next version (the current version is 1.20).

Wayne Pollock,	...!{cbatt, ihnp4}!cbosgd!apr!whp