on 30/11 Phil Davis wrote
>
>Try this:
> set the itemDelimiter to "/"-
> get the filename of this stack
> delete last item of it
> put it into tTopDirectory
> set the directory to tTopDirectory
>Then prepend file and subdirectory references with tTopDirectory.
Thanks Phil BUT my "stacks" are on the CD-ROM. The path I need is to text
files on the hard drive. In the README I offer users the ability to
customise critical portions of my "stacks" by placing text files in a first
level folder/directory with the name "PPacTxt". The buttons, report header
fields etc open and read from the text file on openCard. This is all easy
to do on Windows because the simplified script is:
put "/C:/PPacTxt/textFile"" into introFile
if there is a file introFile then
open file introFile
read from file introFile until eof
put it into bg fld "field"
BUT how do I do this in MacOS when I dont know the name of the hard drive
eg. the path could be "/Macintosh HD/PPacTxt/textFile" or "/Wallies
HD/PPacTxt/textFile" or "/!*!*!*!/PPacTxt/textFile" etc.
Rob Pitt