Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!husc6!mit-eddie!ll-xn!oberon!pollux.usc.edu!kurtzman
From: kurtzman@pollux.usc.edu (Stephen Kurtzman)
Newsgroups: comp.sys.mac
Subject: Re: Reading a full pathname in HFS
Message-ID: <5567@oberon.USC.EDU>
Date: Sat, 5-Dec-87 15:58:34 EST
Article-I.D.: oberon.5567
Posted: Sat Dec  5 15:58:34 1987
Date-Received: Sun, 13-Dec-87 09:29:18 EST
References: <1062@oakhill.UUCP>
Sender: nobody@oberon.USC.EDU
Reply-To: kurtzman@pollux.usc.edu (Stephen Kurtzman)
Organization: University of Southern California, Los Angeles, CA
Lines: 14
Keywords: pathname

In article <1062@oakhill.UUCP> jayn@oakhill.UUCP (Jay Norwood) writes:
>
>Can anyone tell me how to reconstruct the entire pathname of a file that
>has been selected with the SFGetFile function?  Lets say the file
>has a full pathname hd:csource:hello.c.  Calling SFGetfile only returns
>a string that says "hello.c".  Where can I get the rest of the pathname?
>Thanks for any help.
>Jay Norwood

There is a Hypercard XCMD called "filename" that is floating around. The
XCMD does exactly what you are asking about. The version I downloaded from
a BBS came with the source code. I believe it was part of the HC development
kit from APDA. You may be able to simply adapt that code to fulfil
your needs.