Path: utzoo!attcan!uunet!cs.utexas.edu!rutgers!mailrus!purdue!bu-cs!dartvax!eleazar.dartmouth.edu!earleh From: earleh@eleazar.dartmouth.edu (Earle R. Horton) Newsgroups: comp.sys.mac.programmer Subject: Re: DialogManager's TEHandle & FileName Question Keywords: DialogManager, TextEdit, FileManager, Questions Message-ID: <13857@dartvax.Dartmouth.EDU> Date: 9 Jun 89 02:35:29 GMT References: <8316@killer.DALLAS.TX.US> Sender: news@dartvax.Dartmouth.EDU Reply-To: earleh@eleazar.dartmouth.edu (Earle R. Horton) Organization: Thayer School of Engineering Lines: 22 In article <8316@killer.DALLAS.TX.US> lietb@killer.DALLAS.TX.US (Tjeng-Bo Lie) writes: > >Two questions to the net... ... >2. How do I get the name of the application running? I'm trying to save > some default parms in my application's Data Fork... GetAppParms will get you the name, and a GetVol in your initialization code will get you the location of your application file. Unless these default parameters are read-only, however, this scheme will generate problems in some environments (e.g. file servers). Do not write to your open application file, either fork, from within the application. Use a separate configuration file if you must save information between invocations of your program. Earle R. Horton "People forget how fast you did a job, but they remember how well you did it." Salada Tag Lines