[fa.info-mac] INFO-MAC Digest V2 #38

info-mac@uw-beaver (04/30/85)

From: Moderator John Mark Agosta <INFO-MAC-REQUEST@SUMEX-AIM.ARPA>


INFO-MAC Digest          Tuesday, 30 Apr 1985      Volume 2 : Issue 38

Today's Topics:
      Inside LaserWriter and getting ps files from Mac applications
                            The Stolen Apple
                                 Macsend
                    A new MIDI interface for the MAC
              Berkeley Macintosh Users Group (BMUG) Address


----------------------------------------------------------------------

Date: Mon 29 Apr 85 19:37:32-EDT
From: Alan Crosswell <US.ALAN@CU20B.ARPA>
Subject: Inside LaserWriter and getting ps files from Mac applications

My copy of Inside LaserWriter just showed up and it's well worth the 
$75.  You get a copy of the Adobe PostScript manual as well as the 
LaserWriter and Mac-specific stuff like:  You can get a copy of the 
PostScript file that gets sent to the LaserWriter by selecting Print
and holding down command-F immediately after clicking OK from the
dialog box.  Keep holding command-F down until an alert appears that
says something like "Creating Postscript file".  A file named 
Postscript is created with the postscript code (don't forget to rename
it before doing command-F the next time).  This file will not print on
it's own; It relies on some postscript definitions loaded into the 
printer from the "Laser Prep" resource file.  You can, however, edit 
the postscript file and print it over appletalk with a program that 
comes with the manual.  It comes with two floppies -- more screen
fonts for all the variations on a font family (i.e. Times Roman Bold,
etc.)  and a couple of programs - one to print PostScript files and
another which is the runnable version of a sample program from the
manual.

It also documents all those "secret" things in the /statusdict
dictionary and also warns that the EEROM wears out after about 10,000
writes.  You only write to it to set things like the printer name
(default LaserWriter) and default power-up values for baud rate on the
serial ports.  Talking about the serial ports...  when in RS-232 mode
(switch set to 1200/9600 and maybe special), both the DB-25 and DB-9
ports are active and can both be spooled to.  The LaserWriter listens
to whichever port gets the first character in while buffering input
from the other (and sending an XOFF, I assume).  Using this feature,
you can very easily share a LaserWriter between two RS-232 sources.
When it gets a ^D (end of job indication), it will then start a job
from the other port if there is work waiting.  Either port can send a
^T at any time and get back a status message.  The baud rate and
parity of the 9600 and special switch settings are also changeable
(one of the things you might want to write into EEROM).

Disclaimer - I am basing most of the above on a quick reading of the
manual; I haven't tried any of this stuff with the exception of
creating a Postscript file from MacDraw with the command-F trick.

Alan Crosswell Columbia University

------------------------------

Date: Sat, 27 Apr 85 22:02 MST
From: "Kevin W. Laurent" <KLaurent@DENVER.ARPA>
Subject: The Stolen Apple


Here's Dan Winkler's `Stolen' program, rewritten in MacModula-2. I 
think it illustrates well the differences between Mac Pascal and 
Modula-2. Note the use of the pseudo-function ADDRESS, which coerces 
the variable, a, (which is of type LongCard) to be of type ADDRESS.  
Anyway, just thought you might be interested.
------------------------- MODULE Stolen;

(* Here's a little Macintosh Pascal program that displays the stolen
from
   Apple Computer icon in the ROM.  (It's not really an icon since
it's
   only 24 bits tall.)
   Written by Dan Winkler <winkler@harvard) -- 04/13/85.
   Converted to MacModula-2 by Kevin Laurent <KLaurent@DENVER> --
04/18/85.  *)

FROM EventManager IMPORT Button;
FROM MacInterface IMPORT thePort; 
FROM MacSystemTypes IMPORT LongCard;
FROM QuickDraw1 IMPORT BitMap,Rect, srcCopy;
FROM QuickDraw2 IMPORT CopyBits;
FROM SYSTEM IMPORT ADDRESS;

VAR
  a: LongCard;
  b: BitMap;
  r: Rect;

BEGIN (* Stolen *)
  a.h := 40H;
  a.l := 0AD40H;
  b.baseAddr := ADDRESS (a);
  b.rowBytes := 4;
  r.top := 0;
  r.left := 0;
  r.bottom := 24;
  r.right := 32;
  b.bounds := r;
  r.right := 128;
  r.bottom := 96;
  CopyBits (b, thePort^.portBits, b.bounds, r, srcCopy, NIL);
  REPEAT
  UNTIL Button (); END Stolen.

------------------------------

Date: Sun, 28 Apr 85 14:46:35 pdt
From: barry@playfair (Barrett P. Eynon)
Subject: Macsend

The version of macsend (the unix shell script to intelligently send
multiple files through macput) recently submitted by Chris Borland
adds a useful capability for grouping the file triples produced by
macget or xbin (.data,.  .rsrc,.info) and sending them together.
Unfortunately his version disables the ability to send sole .rsrc or
.data files, and also can be misled by file expansions. The enclosed
version of macsend has both capabilities, and triples can either be
referenced by prefix or by a list (e.g. f or f.*).

-Barry Eynon (playfair!barry@Score)

[ This version resides in unix-macsendv2.sh, and Borton's in now in
  unix-macsend.sh -jma ]


#! /bin/sh 
#Shellscript for transmitting groups of files to a Macintosh via macput.  
# Invokes /bin/sh upon entry.  
#Files in three parts as created by xbin or macget (.rsrc, .data, .info) 
# will be sent as one unit. ( References to such files may either be by 
# prefix or by complete list (e.g. f or f.* ) 
# Otherwise:  
# Files with the extension .rsrc will be sent as resource files using 
# the -r option.
# Files with the extension .data will be sent as data files using 
# the -d option.  
# All other files will be sent as text files using the -u option.  
# This shellscript will ignore directories and files that are unreadable.  
# Wildcards may be used.  Thus, to transmit all files beginning with 
# a capital letter, use "macsend [A-Z]*" 
# Upon termination of the operation, the Macintosh bell will ring 
# three times.  This is your clue to wake up and see what you got!  
# Be sure that macput is in your path, otherwise the shellscript won't work!  
# 

# This shellscript is based on the original macsend.  
# 
#Modifications done on April 20, 1985 by 
# 
# Chris Borton 
# University of California at San Diego.  
# Undergraduate CS 
# sdcsvax!sdcc6!ix924 
# 
# Further modifications to cover more cases 4/27 by 
# Barry Eynon (barry!playfair@Score) 
# 
mesg n for f in $* do
        case $f in
        *.data) g=`basename $f .data`
                if [ -r $g.data ] && [ -r $g.rsrc ] && [ -r $g.info ]
                then
                        echo -n " "
                elif [ -f $f ] && [ -r $f ]
                then
                        echo " macput -d $f"
                        macput -d $f
                fi
        ;;
        *.rsrc) g=`basename $f .rsrc`
                if [ -r $g.data ] && [ -r $g.rsrc ] && [ -r $g.info ]
                then
                        echo -n " "
                elif [ -f $f ] && [ -r $f ]
                then
                        echo " macput -r $f"
                        macput -r $f
                fi
        ;;
        *.info) g=`basename $f .info`
                if [ -r $g.data ] && [ -r $g.rsrc ] && [ -r $g.info ]
                then
                        echo " macput $g"
                        macput $g
                elif [ -f $f ] && [ -r $f ]
                then
                        echo " macput -u $f"
                        macput -u $f
                fi
        ;;
        *)
                if [ -r $f.data ] && [ -r $f.rsrc ] && [ -r $f.info ]
                then
                        echo " macput $f"
                        macput $f
                elif [ -f $f ] && [ -r $f ]
                then
                        echo " macput -u $f"
                        macput -u $f
                fi
        ;;
        esac done echo -n " " echo "Downloads done!"  echo -n  echo
-n  echo -n  mesg y p

------------------------------

Date: 29 Apr 85  0948 PDT
From: Robert Poor <ROB%CCRMA@SU-AI.ARPA>
Subject: A new MIDI interface for the MAC

I recently talked to one Evan Brooks who works for a Palo Alto company
named Digidesign.  His company has designed a MIDI interface for the
Mac.  I pass on the info Evan gave me:

The "Macintosh-Midi cable" will be manufactured and distributed by 
Assimilation Process, a company in Los Gatos, CA.  The cable is a 
combination Midi Interface and serial-parallel converter.  Thus, the 
serial port this is plugged into on the Mac can be used as:
        A normal serial port
        A parallel port
        A MIDI interface

The projcted cost: $79.95 retail.  Expected Availability:  July 85.

I believe it will be released with a basic four-track "Midi Recorder" 
program, which allows you to record, overdub, and play back four
tracks of Midi data.

- Rob Poor [ROB@SU-AI.ARPA]

------------------------------

Date: Sun, 28 Apr 85 03:01:01 pdt
From: chavez%ucbcory@Berkeley (Thomas M. Chavez)
Subject: Berkeley Macintosh Users Group (BMUG) Address


I seem to have left off our address and quite a few people have asked
for it.  BMUG is the Berkeley Macintosh Users Group.

        BMUG
        Suite #153
        1442A Walnut Street
        Berkeley, CA 94709
        (415) 849-9114
        (415) 849-BMUG (Bulletin Board System)

Remember that it is only $15 to join BMUG, which includes the 130-page
news- letter and a disk full of public domain programs.

Tom Chavez chavez@BERKELEY

------------------------------

End of INFO-MAC Digest
**********************