Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!wuarchive!psuvax1!rutgers!gatech!udel!oscar.ccm.udel.edu From: johnston@oscar.ccm.udel.edu (Bill Johnston) Newsgroups: comp.sys.mac.hypercard Subject: Re: How can I have an HC stack check if it's running from a hard disk? Message-ID: <50679@nigel.ee.udel.edu> Date: 14 Apr 91 07:00:57 GMT Sender: usenet@ee.udel.edu Lines: 15 Nntp-Posting-Host: minnie.me.udel.edu In article <1991Apr13.181917.20797@spool.cs.wisc.edu>, elliott@veronica.cs.wisc.edu (James Elliott) writes... >I have a HyperCard stack I'm creating as an entry for a contest, which >makes intensive use of sampled sounds. I would like to have it test to >see if it is being run from a floppy ... There must be a better way, but ... (using two XFCN's from the SupportTools eXternals stack): CurrAppPath returns the full path name of the currently running HyperCard. (For example, "HD40:HyperStuff:HyperCard".) Strip away the stuff after the first colon and put the rest into volumeName. Put SCSINameToID(volumeName) into "temp": if volumeName isn't a SCSI drive, temp will contain "volumeName is not a SCSI drive" and you'll know that you are working from a floppy. -- Bill (johnston@oscar.ccm.udel.edu)