Info-Mac-Request@SUMEX-AIM.STANFORD.EDU (The Moderators) (05/06/89)
Info-Mac Digest Fri, 5 May 89 Volume 7 : Issue 82 Today's Topics: Copyfile XCMD Getting file names from refnums Helium???? HP DeskJet Driver IBM-PC to Imagewriter II Info-Mac Digest V7 #80 Joining text files Printing code example Promodem 2400 Screen savers and SPY! Shrink-wrapped virus Source Codes for INIT/CDEV's Subject: Re: Info-Mac Digest V7 #81 Weird PageMaker Problem Your Info-Mac Moderators are Lance Nakata, Jon Pugh, and Bill Lipa. The Info-Mac archives are available (by using FTP, account anonymous, any password) in the info-mac directory on sumex-aim.stanford.edu [36.44.0.6]. Please send articles and binaries to info-mac@sumex-aim.stanford.edu. Send administrative mail to info-mac-request@sumex-aim.stanford.edu. ---------------------------------------------------------------------- Date: Fri, 5 May 89 14:21 EDT From: <PJORGENS%COLGATEU.BITNET@forsythe.stanford.edu> (Peter Jorgensen - Micro Specialist) Subject: Copyfile XCMD Greetings: Can anyone give me some clue as to how to use the COPYFILE XCMD by J. Brad Hicks (I believe)? I have tried the following syntaxes: COPYFILE("file" "newfile") (returns "expected ")" but found " " ") COPYFILE("file newfile") (the result is -2 (invalid queue element) COPYFILE("file,newfile") ( ditto) COPYFILE("Vol:file,newfile") (ditto) And many other permutations of the above. Thanks alot... by the way, is this xcmd in the archives, I did look for an example stack, apparently I threw out the one from which I got this xcmd, after copying it into my Home Stack. Thanks for your assistance, Peter (helpless) Jorgensen Microcomputer specialist Colgate University - Hamilton, NY 13346 AppleLink - U0523 BITNET - PJORGENSEN@COLGATEU tel - 315-824-1000 ext 742 ------------------------------ Date: May 5, 1989 12:00 PST From: dwb@apple.com Subject: Getting file names from refnums In article <17812@srcsip.UUCP> mnkonar@srcsip.UUCP (Murat N. Konar) writes: > >I am writing an INIT/cdev combo where the cdev and an INIT >installed patch need access to the INIT file to read >resources. Short of hardcoding the file name, how can I >get the name of my INIT file from during INIT time for >use later? Getting the file number is easy, but how >do I use that number to re-open the file from inside a >patch or cdev? I can't find any file opening routines >that take this number as an argument, nor can I find any >routines that take this number as an argument and return >the name of the file. I know this must be possible since >a number of cdevs seem to do this. The following code (completely untested and written off the top of my head) should do what you want. The code should also work for applications if executed immediately upon entry, ie., before the application opens any additional resource files. You'd have better luck in applications if you replaced the call to CurResFile with CurApRefNum. CurApRefNum is a short at 0x900. OSErr GetMyFileInfo(short *myRefNum, char *name) { FCBPBRec pb; pb.ioNamePtr = name; pb.ioVRefNum = 0; pb.ioRefNum = CurResFile(); /* get the refNum of the INIT file */ pb.ioFCBIndx = 0; PBGetFCBInfo(&pb, false); *myRefNum = pb.ioVRefNum; return pb.ioResult; } Opinions: MINE, ALL MINE! (greedy evil chuckle) David W. Berry (A/UX Toolbox Engineer) apple!dwb@sun.com dwb@apple.com 973-5168@408.MaBell ------------------------------ Date: Fri, 05 May 89 12:15:38 EDT From: Kim Dyer <3C257F7%CMUVM.BITNET@forsythe.stanford.edu> Subject: Helium???? I downloaded some sound effects and appear to have a bit of a problem. All but one appears to have been done in a helium atmosphere ... EXTREMELY high and quick. Gotta be something I'm doing. (I got ONE to play properly, but don't recall doing anything different) Any suggestions? I'm referring specifically to the various Warner Brothers FX available here. (The one I got to work OK was non-WB ... Lizardo saying "Laugh While You Can - Monkey Boy".) I want to use them as a less mundane "start up" sequence ... but Martin the Martian looses his impact at 78 rpm. ------------------------------ Date: Fri, 05 May 89 13:21:26 EDT From: "Collins, Herman" <SYSHERM%UKCC.BITNET@forsythe.stanford.edu> Subject: HP DeskJet Driver I'm interested in the HP DeskJet driver that was mentioned here recently, but I had some problems when I retrieved it. I FTPed it >From Stanford to my VM machine, then to my Mac. I unpacked it in two ways (BinHex/Packit and Stuffit), but the type and creator were garbage in many (all?) of the files. In particular, I couldn't read the manual, even after setting the type and creator and trying Edit, MacWrite, and Words 1.0 and 3.0. Has anybody successfully retrieved this? I'm particularly interested in the source; I don't have a DeskJet, but I might be able to modify it to driver a funny plotter we have. Herman Collins 128 McVey Hall Bitnet: SYSHERM@UKCC University of Kentucky Internet: sysherm@ukcc.uky.edu Lexington, Ky. 40506-0045 Phone: 606-257-2256 ------------------------------ Date: Thu, 4 May 89 16:58:38 pdt From: burke%pepvax.bitnet@forsythe.stanford.edu Subject: IBM-PC to Imagewriter II This is a delayed response to Jeff Wasilko's need to hook an Imagewriter II printer to an IBM-PC (INFO-MAC v7 #74). I made a cable to mate the two so long ago, today I had take the cable apart to see what I had done. Assuming that you have a serial interface in the PC, the following should be helpful. When I originally made the cable I consulted Apple's Peripheral Interface Guide (pn 072-0213A) for guidance. This guide is very useful to help in making strange cables for any of Apple products. The specifications for the beast are as follows: male din-8 end female db-25 end -------------- ---------------- pin# 1 6 & 8 2 4 & 5 & 20 3 3 4 & 8 7 5 2 6 n/c ** All other pins are not connected. 7 n/c I find that soldering on those little din-8 connectors is really hard, so I just cannibalized an Imagewriter to Mac cable (pn M0187) to get the din-8 with a wire already on one end. I then soldered a female db-25 to the end I had cut off. The alternative to this home grown approach is to buy the cable to hook an Apple II Super Serial Card to Imagewriter II (pn A9C0314) and then make a db-25 female to female gender changer that has this pin out: female db-25 female db-25 end Apple cable end IBM-PC end --------------- ---------------- pin# 2 2 3 3 6 6 7 7 8 8 20 20 & 5 & 4 ** All other pins are not connected. Besides the cable the IBM-PC will need to have the printer output redirected by the following DOS commands: C:\>MODE COM1:9600,n,8,1,p ** Assuming the PC has a hard disk C:\>MODE LPT1: = COM1: ** and DOS is on the hard drive. Another tip would be to set the dip switch SW-1-6, OPEN to get the Imagewriter II to print at 10 cpi pitch (like default on Epson and Okidata printers) not 12 cpi (the Imagewriter default pitch). Since the Macintosh prints "graphics" not "text" in the BETTER or BEST print mode, the switch setting will only effect the Macintosh printing FASTEST mode whan the Imagewriters bulitin Courier font is used. ------------------------------ Date: Fri, 5 May 89 10:00 CST From: AEEVERETT%UALR.BITNET@forsythe.stanford.edu Subject: Info-Mac Digest V7 #80 We here at UALR have recently acquired LaTeX software from DECUS which includes a TeX to PostScript translator. There is a version of this software for the PC, and I would like to see some manageable version for the Mac. While I'm at it, I might as well bring up the issue of pulling TeX -> PostScript documents into a Mac application like PageMaker as an EPS file. Albert Everett Academic Computing Services University of Arkansas at Little Rock bitnet: aeeverett@ualr ------------------------------ Date: 5-MAY-1989 12:02:04.30 From: BPARSIA@eagle.wesleyan.edu Subject: Joining text files In addition to the Unity utility, I think that Stuffit (ver 1.51?) has a "Join" (as well as "Split") command that will join text files. I believe it is in the same menu as the Hexing/Dehexing and unpacking commands are. ------------------------------ Date: Thu, 4 May 1989 16:11:09 PDT From: William J. Lipa <lipa@polya.stanford.edu> Subject: Printing code example Here is a printing code shell I got off comp.sys.mac.programmer. It's supposed to have code for some special cases that only trip you up 1% of the time. [Archived as /info-mac/source/pascal/printing-example.txt; 9K] ------------------------------ Date: Fri, 5 May 89 12:56:18 AST From: JOAO CANDIDO PORTINARI <USERJCP%LNCCVM.BITNET@forsythe.stanford.edu> Subject: Promodem 2400 Hi: I acquired a Prometheus ProModem 2400 and need your help to use it. I have no User's Manual and would appreciate if anyone on the net could kindly inform me on how to set the dip switches. Also, to which Hayes commands will it respond (I tried AT&V, which on Hayes SmartModem 2400 gives you the complete configurations, but the ProModem answered ERROR to that command). Thanks! Joao C. Portinari (USERJCP@LNCC) ------------------------------ Date: Fri, 5 May 89 09:17 EDT From: <PJORGENS%COLGATEU.BITNET@forsythe.stanford.edu> (Peter Jorgensen - Micro Specialist) Subject: Screen savers and SPY! Greetings: Does anyone know of a screen saver that will blank out SPY!? (If you don't know SPY!, and are a programmer, you should check it out. It continuously displays, above the menubar, your startup volume's free space, the sizes of the system heap, Application heap, and stack. It's free from Cricket Software, (don't know if it's posted in the archives.) Peter Jorgensen Microcomputer specialist Colgate University - Hamilton, NY 13346 AppleLink - U0523 BITNET - PJORGENSEN@COLGATEU tel - 315-824-1000 ext 742 ------------------------------ Date: Fri, 05 May 89 15:41:04 EDT From: Anup Patel <patel@mitre.mitre.org> Subject: Shrink-wrapped virus Around the end of last year, I read in a magazine or E-Mail about a software manufacturer who sent out brand new shrink-wrapped disks that contained a virus. Does anyone rember who it was, or can tell me where to find the information? Thanks Anup Patel The MITRE Corp. m20011@mwvm.mitre.org ------------------------------ Date: Thu, 4 May 89 17:33 EDT From: <BMEDIRAT%COLGATEU.BITNET@forsythe.stanford.edu> Subject: Source Codes for INIT/CDEV's Hello all, I am an aspiring programmer with some good ideas, but I lack the background in Macintosh software architecture. I would like to write INIT and CDEV resources, but I need something to work with. Could somebody out there who has written these types of resources publish some kind of skeleton program (I'm using LightSpeed Pascal, but C is fine also) that I could use as a guideline? It would be much appreciated. Bharat Mediratta BMEDIRATTA@COLGATEU "When the going gets weird, the weird turn pro" - Hunter Thompson By day, an ordinary college student... ...by night...an ordinary college student. ------------------------------ Date: Fri, 5 May 89 11:48:03 PDT From: John Peterson <jp@apple.com> Subject: Subject: Re: Info-Mac Digest V7 #81 > > Could someone tell me if Word 4.0 supports the following features? > Automatic numbering of any arbitrary elements. (ie. Chapters, > sections, sub-sections, tables, figures, equations...) > Cross referencing of these elements by a user defined template. > (ie. Equation 4.1, Table 3.1, Figure 2 on page 8) > Citing from a user created bibliography database > > In short, I would like to know if word can do most of the things that > Scribe does but on a mac. Not that I like Scribe, but it does handle > large documents with lots of equations, citations, and cross references > well. > No. What a turkey. Word 4.0's manual is actually thicker than Scribe's (approaching 500 pages) yet it still doesn't have these basic features. It does now have a mathematics mode, but the user interface is a ghastly eqn/TeX like thing (e.g., ".\I.\SU(...") instead of something like MathType or Milo. I have seen kludgy bibliography databases for Word, implemented with Hypercard and Word's "print merge" facility. It's not the real thing though. FullWrite does real cross referencing, and a crude bibliography facility. However, it's still not robust or complete enough to do the job right. Stepping back, it seems really sad that after five years we still don't have a WYSIWYG word processor with all the necessary features that Scribe, LaTeX, or the Unix troff tools have. As Brian Reid said, "What You See is All You've Got." Sigh. Cheers, jp ------------------------------ Date: Fri, 5 May 89 09:04 EDT From: <PJORGENS%COLGATEU.BITNET@forsythe.stanford.edu> (Peter Jorgensen - Micro Specialist) Subject: Weird PageMaker Problem Greetings: Has anyone seen this one before? I had several TIFF gray scale files to print. I placed one into a PM 3.01 document and printed the document. I did this first on a Mac II with 8bit color, 5MB RAM running under MultiFinder (700K allocated to PageMaker), system 6.0.2. The printout, on a LaserWriter IINT was very nice, just as expected (I let PM do the halftoning). Now I did the same process, same TIFF file, on a MacII with 4bit Monochrome. Same LaserWriter, same system version, no multifinder, 2MB RAM. The image prints out as if it were posterized, i.e. fewer grays! PageMaker claims, and I believe them, that the gray scale capacity of the monitor should have nothing to do with how a TIFF image gets printed out. But what happened. Any ideas? Peter Jorgensen Microcomputer specialist Colgate University - Hamilton, NY 13346 AppleLink - U0523 BITNET - PJORGENSEN@COLGATEU tel - 315-824-1000 ext 742 P.S. I ended up printing all the files from the color MacII. ------------------------------ End of Info-Mac Digest ******************************