Confirming a Save command

Sjoerd Op 't Land sjoerdoptland at mac.com
Mon Sep 16 00:40:01 EDT 2002


John Kiltinen wrote/ schreef:

> I want users of my MetaCard application to be able to save changes to
> stacks.  However if they are running the application off of the CD ROM on
> which it will be delivered, or if for some reason the stack has been locked
> or set for read only mode, the saving that they think they are doing does
> not happen, and I want a way to detect this and let them know about it.
What about just writing a file:

  put "aaa" into url ("file:" & thePath & "/test.dat")
  if url ("file:" & thePath & "/test.dat") is not "aaa" then
    -- warning stuff here
  end if

> 
> There ought to be a better way to do this.  Anyone?
> 
> John Kiltinen
Regards, / Groeten,
Sjoerd




More information about the metacard mailing list