Path: utzoo!attcan!uunet!samsung!zaphod.mps.ohio-state.edu!rpi!elliott From: elliott@itsgw.rpi.edu (Jim Elliott) Newsgroups: comp.sys.mac.programmer Subject: Probably a simplistic question, but I haven't seen the answer Summary: How can my application tell what directory it is in? Keywords: application location, startup processing Message-ID: Date: 17 Sep 90 06:13:55 GMT Distribution: comp Organization: Rensselaer Polytechnic Institute, Troy NY Lines: 18 After several frustrating attempts over the last year or so, I've actually written a nifty application for my Mac, thus finally acheiving the level of ownership I used to feel with my //e. Think C 4.0 and the TCL have been no small part of my success -- I bought them a week ago, and written a very ambitious (and working!) program with them. But, the important part of this posting: When I launch my application, I want to be able to have it look in the directory in which it resides for certain documents, and open them if the user hasn't specified startup documents. I can't see anywhere that tells me how to determine the location of an executing application's file, for use in later HFS calls. How can I do this? Obviously many programs manage to do it. -- ----- Jim Elliott "Like a bridge he'll come between us, not a wall" elliott@netserv2.its.rpi.edu