Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!husc6!cs.utexas.edu!oakhill!tomj
From: tomj@oakhill.UUCP (Tom Johnson)
Newsgroups: comp.sys.mac.hypercard
Subject: 2.0 WishList (was Re: Do integers stop at 2^30?)
Summary: A few useful functions I **could** write as xfcn's
Keywords: FExists(), VMounted()
Message-ID: <1516@oakhill.UUCP>
Date: 22 Sep 88 18:24:34 GMT
References: <3047@pt.cs.cmu.edu> <17439@apple.Apple.COM>
Reply-To: tomj@oakhill.UUCP (Tom Johnson)
Distribution: na
Organization: Motorola Inc., Austin Tx.
Lines: 33

In article <17439@apple.Apple.COM> dan@apple.com.UUCP (Dan Allen) writes:
>In article <3047@pt.cs.cmu.edu> ns@cat.cmu.edu (Nicholas Spies) writes:
>>IsADigit(c) -- return true if c is a digit
>>....several deleted neat ideas...
>>ParseFrom(text,string) -- return text from any character in string
>
>Good ideas.  We'll see what we can do for 2.0...
>
>Dan Allen
>Apple

While we are (now) on the subject...how about a little help for those
of us who would like to test for the presence of a file or volume
(or MacServe, TOPS, or AppleShare partition) **prior** to attempting
to open a file and have the open request trapped by Hypercard?  This is
a problem when you are attempting to design a stack for people who have
only a vague idea of what a file **is**, much less where it lives.  It
sure would be handy to be able to code a script something like:
   if FExists(fname) then
	--do file stuff here
   endif
or:
   if VExists(volume_name) and FExists(volume_name&":"&path&":"&fname) then
        --ditto above
   else 
	beep
	answer "You must mount the volume" && volume_name
   endif

That's my 3.295 cents worth.
|Standard Disclaimer
|Tom Johnson
|tomj@oakhill.UUCP