Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!dali.cs.montana.edu!uakari.primate.wisc.edu!sdd.hp.com!wuarchive!udel!haven.umd.edu!uvaarpa!murdoch!clas01!heddle From: heddle@clas01.cebaf.gov (David Heddle) Newsgroups: comp.sys.mac.programmer Subject: Launching Applications via Think C Keywords: Launch, Wingz Message-ID: <1991May10.142613.14885@murdoch.acc.Virginia.EDU> Date: 10 May 91 14:26:13 GMT Sender: usenet@murdoch.acc.Virginia.EDU Reply-To: heddle@clas01.cebaf.gov (David Heddle) Organization: CEBAF (Continuous Electron Beam Accelerator Facility) Lines: 34 Dear Friends: Does anyone have source code in Think C (& embedded assembly) for launching an application AND a document? For example: ErrStat LaunchIt(char *AppName, char *DocName) { } where AppName & DocName could be specified by full or partial path names and could be in different folders. I have a version that "sort of" works but will bomb occasionally. The problem is that it is a real hack -- I haven't mastered HFS an such thorny issues as when you should or should not open a working directory. As a result, what I have is not robust and seems to slowly deteriorate the system. Actually, it seems to work fine if full path names are provided. Thus a related question is: Does anyone have a Think C routine which can reconstruct a full path name from a partial path name: char *FullPathName(char *PPName) As a final note, my ultimate aim is to build this into a WingZ external. So in the extremely unlikely event that someone out there has already solved this... cheers, dph