>OK now that we are learning to write preferences files. . . how to test for
>their existence?
>
>exists url "file://mcPrefs/proxyPrefs.txt"
Try
put the directory & "/mcPrefs/proxyPrefs.txt" into tPrefsPath
put there is a file tPrefsPath
>
>returns an error message even though the file is there.
>
>Of course one can try to simply get the data (prefs saved in an engine level
>folder)
>
>on mouseUp
> put the directory & "/mcPrefs/proxyPrefs.txt" into tPrefsPath
> put url tPrefsPath into msg
>end mouseUp
>
>This works and if it is not returned then you know it doesn't exist at least
>at that location. But it will be helpful in the long wrong to have the
>existence function work for a file ref as certain functions will be easier
>scripted against the boolean than to keep testing a result which takes twice
>the code lines.
>
>if not (exists some file) then download whatever from the web
>
>vs:
>
>put some file into tVariable
>if tVariable is empty then
> download whatever from the web
>end if
>
>=======
>on mouseUp
> put the directory & "/mcPrefs/proxyPrefs.txt" into tPrefsPath
> if exists url tPrefsPath then put "yes"
>end mouseUp
>
>The above doesn't work but the file is there and can be read from that
>path.
>
>Hinduism Today
>
>Sivakatirswami
>Editor's Assistant/Production Manager
>www.HinduismToday.com
>[EMAIL PROTECTED]
>
>
>Archives: http://www.mail-archive.com/metacard%40lists.best.com/
>Info: http://www.xworlds.com/metacard/mailinglist.htm
>Please send bug reports to <[EMAIL PROTECTED]>, not this list.
>
>
Regards, Andu
__________________
[EMAIL PROTECTED]
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.