[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference 7.286::macintosh

Title:Apple Macintosh Volume II
Notice:Mac is NOT an acronym - it's Mac or Macintosh *not* MAC
Moderator:SMURF::BINDERONS
Created:Sun Jan 20 1991
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:964
Total number of notes:30983

956.0. "BINHEX for VMS?" by STAR::GOLDSTEIN (Andy Goldstein, VMS Development) Fri Mar 21 1997 18:55

Has anyone ever written a BINHEX for VMS? More and more find myself pulling
stuff down from the web in the office and wanting to take it home on floppies.
This is OK until the file size exceeds 1.4MB. With a BINHEX I could split the
file and reassemble in on the Mac.

If there isn't one, does anyone know where I could find out what the encoding
is? It should be easy enough to write.
T.RTitleUserPersonal
Name
DateLines
956.1SMURF::BINDERErrabit quicquid errare potest.Fri Mar 21 1997 20:065
    I don't know of a BinHex for VMS, but you don't actually need BinHex. 
    If you have access to a UNIX box, or if you have the POSIX environment
    installed on your VMS system, you can uuencode the files and split the
    result, then put it back together and decode it with StuffIt Expander
    with Expander Enhancer or with StuffIt Deluxe.
956.2NETCAD::EZRIDR::SIEGELThe revolution wil not be televisedFri Mar 21 1997 20:0817
re:     <<< Note 956.0 by STAR::GOLDSTEIN "Andy Goldstein, VMS Development" >>>
>                              -< BINHEX for VMS? >-
>
>Has anyone ever written a BINHEX for VMS? More and more find myself pulling

I have a program that DECODES BinHex into binary, which is useful for reducing
(by 25%) the size of downloaded .HQX files.  But this isn't what you want.

For ENCODING of binaries into text, I don't have a BinHex'er program, but I DO
have a UUencoder, which performs essentially the same type of transformation,
and at the same ratio of input to output file size (1:1.25).  You can then
split it into pieces and reasemble them on the Mac.  Stuffit Expander will
decode UUencoded files just like it will decode BinHex encoded files (although
you may need DropStuff with Expander Enhancer to access the .UUE decode
function).  I can provide UUE.EXE and UUD.EXE upon request.

adam
956.3McVERT should do what you wantUNIFIX::HARRISJuggling has its ups and downsFri Mar 21 1997 23:2212
    HUMANE::MAC$ROOT:[COMMUNICATIONS.TOOLS]MCVERT.BCK;2   ! adapted for OpenVMS
    HUMANE::MAC$ROOT:[COMMUNICATIONS.TOOLS]MCVERT_V2_5.SHAR;1
    
    I think this is a utility that will do what you wnat.  This is
    originally started life as a UNIX program so you may need to enclose
    some of the options in double quotes ("...") to perserve the
    upper/lowercase nature of the options.
    
    At worse, I think it might give you a good starting point for writing
    your own if it doesn't do exactly what you want.
    
    					Bob Harris
956.4More info for McvertCSC32::M_HERODOTUSMario at CXO3/B10 ColoradoSat Mar 22 1997 03:287
    
    Does mcvert create binhex files? or just decode them? I think he wants
    to create them...if mcvert can do that, can you tell me how? That could
    be useful.
    
    Thanks,
    Mario
956.5You should be able to create BinHex files on OpenVMSUNIFIX::HARRISJuggling has its ups and downsSun Mar 23 1997 20:0629
    Yes McVert can be used to create binhex files (but in a round about
    way).
    
    If you have a MacBinary file, then just use
    
    	mcvert -xU file.bin		! will create a file.hqx
    
    If you do not have a MacBinary file, then create one.  For example if
    the file is Text, try the following:
    
    	mcvert -uD file.txt		! creates file.txt_bin
    	mcvert -xU file.txt_bin		! creates file.txt_hqx or similar
    
    Or 
    
    	mcvert -dD file.jpg
    	mcvert -xU file.jpg_bin
    
    I have only read the man page on mcvert and figured this out, I have
    not actually tested this carefully, but then again mcvert comes will
    all the sources so it can be modified if it doesn't do what you desire.
    
    The version in MacOnLine has the desirable OpenVMS modifications for
    creating valid OpenVMS 128 byte Fixed Length files and for dealing with
    fseek() problems on OpenVMS.
    
    	HUMANE::MAC$ROOT:[COMMUNICATIONS.TOOLS]MCVERT.BCK
    
    					Bob Harris
956.6systax -1 worksIJSAPL::ASSCHER_JFri Apr 04 1997 10:403
    I have been using the syntax of note -1 and it works fine.
    
    Joav,
956.7don't forget the double quotes around optionsUNIFIX::HARRISJuggling has its ups and downsFri Apr 04 1997 13:278
    Re: .5
    
    I forgot put my MCVERT lower/uppercase options inside of double quotes
    "-dU".  I know i mentioned this in an earlier reply, but then I wrote
    the example in .5 and forgot about the "".  So if anyone is trying the
    example in .5, don't forget the double quotes when working on OpenVMS.
    
    					Bob Harris
956.8STAR::GOLDSTEINAndy Goldstein, VMS DevelopmentThu Apr 17 1997 18:521
Thanx for all the help, folks. It works fine.