Rob
To get the correct pathname I use the following script in a openscript
handler. This gives the user a chance to change the path names at the
begining of the project. It can be modified to be used once or each time
the program is used. The globals fname or path name can then be used
whenever the path is needed in the program
***************************************
on openStack
global fname,pname
put "/LaCie 4400/river project/SCREEN CAPTURES/p13-" into fname
put "/LaCie 4400/river project/" into pname
ask "what is the file path?" with fname
put it into fname
end openStack
********************************
>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
*******************************************************
Ed Cawley Department of Biology
Director, Envir. Res. Center
Loras College, Dubuque,IA 52004
[EMAIL PROTECTED](Ed Cawley) 319-588-7128, FAX 319-588-7964
******************************************************
Help save HyperCard, visit http://www.hyperactivesw.com/SaveHC.html
"HyperCard: Is there anything it can't do?"
*******************************************************