Path: utzoo!attcan!uunet!husc6!bbn!apple!well!brecher From: brecher@well.UUCP (Steve Brecher) Newsgroups: comp.sys.mac.programmer Subject: Re: Startup Applications? (How to tell if you are one) Message-ID: <11335@well.UUCP> Date: 17 Apr 89 03:28:34 GMT References: <1623@husc6.harvard.edu> Reply-To: brecher@well.UUCP (Steve Brecher) Distribution: na Organization: Software Supply, Sunnyvale, CA Lines: 24 In article <1623@husc6.harvard.edu> siegel@endor.harvard.edu (Rich Siegel) writes: > Is there a way to determine whether your program is running as a startup > application? I suspect it can be done, since PowerStation knows when to run > its startup page and when to run its user interface... PowerStation does this when it is launched: IamStartup := false Scan system heap for PowerStation's owned relocatable block if not found then create the owned block if startup name in boot blocks of system volume = (CurApName) then IamStartup := true This is not entirely foolproof, as the user might have switch-launched to a new system volume for which PowerStation is the startup in the boot blocks, from the real startup volume which did not have PowerStation as the startup application. But I can't think of any foolproof method. -- brecher@well.UUCP (Steve Brecher)