[comp.sys.mac.programmer] Probably a simplistic question

kw1r+@andrew.cmu.edu (Kevin Whitley) (09/17/90)

This is straightforward.

You can get the name of the application file with a call to GetAppParms.

Tech note #77 (HFS Ruminations) says that, with HFS running, a call to
GetVol, before you've made any SetVol calls, will return (in vRefNum)
the working directory of your application's parent directory.  With MFS
running, the GetVol call will return the volume number of the
application in vRefNum.

Those together give you everything you need.

Kevin Whitley
kw1r@andrew.cmu.edu