[net.sources.mac] Switch.hqx -- Beyond-Mini-Finder DA

maclab@reed.UUCP (S.Gillespie/Mac Dev. Lab) (11/02/85)

Although the name I have chosen for this DA is perhaps a poor
one (too similar to 'Switcher,' with which it has nothing in
common), I find it to be extremely useful.  Switch changes
the copy of the Finder's name in low memory, such that when
you quit the current application, the application of your
choice will be invoked.

When you select 'Switch' from the Desk Accessory Menu, a tiny
window will be put up in the upper-right corner of your screen:
the window contains the name of the application which will be
invoked when you quit the current application (which will usually
be 'Finder').  Switch also puts up a menu which contains the
names of all applications on the current system disk:  when you
select an application name from that menu, Switch will copy the
name into the low-memory Finder Name location, and then close itself.
When you quit the current application, the selected application
will be started up.

Caveats:
  
 1) If the application you select has a name longer than 15 characters,
    Switch will just leave the current Finder name alone (there is
    only room for a 15 character name in low memory).

 2) As mentioned above, only applications on the current System disk
    will appear in the Switch menu.


I hope someone else besides me finds this DA useful!  The Rascal
source for Switch has been posted to net.sources.mac.  The DA and
source are public domain.


Scott Gillespie
Reed College


{decvax, ucbvax, pur-ee, uw-beaver, masscomp, cbosg, aat,
 mit-ems, psu-cs, uoregon, orstcs, ihnp4, uf-cgrl, ssc-vax}!tektronix 
								\
						                 +--!reed!maclab 
{teneron, ogcvax, muddcs, cadic, oresoft, grpwre,     		/
 	  harvard, psu-cs, omen, isonvax, nsc-pdc}-------------+

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


(This file must be converted with BinHex 4.0)

:"P0hDA4MD!"%4NP-4%e29J#3#!F'3RX!N!3"!*!$"X`!!!A-!*!$1J!+!!)!!`!
+!*!$#!#3!ji!#J!+!*!$"%-6-%!!N!-#!!3!!!G`B!S!!&0&8N3!!3!!)(J"((3
85J&R!R3Fd-)Q''GQ)N-Q%@GJ)N-N''GD*%)N%QG8*%*+3'mD3IS!6NIk!'*+!@F
)3IS!FNIk!)BLL#5,B$3N1J"'5J&R"#3k!'iJH!+Z)$`!!3!!Y*!!C`K85&1!E[C
J%Pa)*)K#+J!(N!$m!"JLL%)T!!G1G8d!N!KJ"-`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