Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site ucbvax.ARPA Path: utzoo!watmath!clyde!burl!ulysses!ucbvax!huxham From: huxham@ucbvax.ARPA (Frederick Huxham) Newsgroups: net.sources.mac Subject: SetFile DA (attempt #2) Message-ID: <5475@ucbvax.ARPA> Date: Wed, 13-Mar-85 12:10:42 EST Article-I.D.: ucbvax.5475 Posted: Wed Mar 13 12:10:42 1985 Date-Received: Thu, 14-Mar-85 05:23:46 EST Distribution: net Organization: University of California at Berkeley Lines: 212 Sorry to everyone who downloaded the first attempt that somehow got thrashed. Thanks to everyone who let me know the upload was bad. This upload should be ok. Once again, I wrote this DA along with Sam Roberts. I does all that SetFile (software supplement) does plus 1. allows you to set/unset the protected and locked bits. 2. allows you to access files on either drive (plus hard disks). 3. allows you to eject a disk and insert a new one. One note: If you use the DA while on the desktop..any of the attributes you set or unset will not be activated until the desktop is updated. (ie. you leave and come back to the desktop [run an application]) This sort-of bug is the fault of the Finder (I think) The DA is written in a combination of C and assembly language using Consulair C. Any questions, comments, or further suggestions should be sent to Fred A. Huxham huxham@BERKELEY (This file must be converted with BinHex.Hex) #DESKDAMV$0000 ***COMPRESSED ***DATA FORK ( 3 *V @ 4V5T1FEL92!!8V-EI)"A?( QF"$AMOHBH46 .#&P 0!L (&\&2&V^B*A1*%].7DYU3E8 $)G3KH$A! ?0JX #$Y> ("Z?3G5.5O[>3KK_LJFT0F<_//__2&W^<*EP'5___3 M (/YP9P !W%- 9QQ50&< 9)50&< 8Q30&< DAN_N*I+#U?__XP+O_^4T!G%%- (&<:4T!G3E- 9R!50&DAM_I"I)6 20 0! R ( "P $!:@ % 5@!< &( : @ 4V5T1FEL (&4 H@"M *X K8"H N\+S@(_$CG?_Y%^O_J*$K4P-CZ (/_L( @B"2!*(DPD3"9,3I!,WW_^3G4P.O_*8-8P.O_& (&#,,#K_PF#&,#K_OF# ,#K_NF"^0J=.5O_@828@#5F ("\ !$ RBM _ORH;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