Save on Quit?

Roger Eller roger.e.eller at sealedair.com
Sat Mar 30 10:47:50 CDT 2013


Depending on the OS, if you happen to have the file open in another
application, you won't be able to write to it.  Check that.  Also, try
adding

set the defaultFolder to specialFolderPath("Desktop")

at the beginning of the script. Or, any defined path.

Just a note... you can simply say lock screen, and unlock screen rather
than set the lockScreen...

~Roger
I wonder if anybody can tell me why this works as a stack, but doesn't as a
standalone:

on mouseUp
   ---
   set the lockScreen to true
   delete file "BacktUp.rtf"
   if fld "DoneText" of card "Entry" of stack "RWord" is not empty then
      set the vis of img "SAVE" to true
      set the lockScreen to true
      put the RTFtext of fld "DoneText" of card "Entry" of stack "RWord"
into url("file:" & BacktUp & ".rtf")
      set the lockScreen to false
      set the vis of img "SAVE" to false
   end if
   ---
   Quit
   ---
end mouseUp

Richmond.

______________________________**_________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/**mailman/listinfo/use-livecode<http://lists.runrev.com/mailman/listinfo/use-livecode>


More information about the use-livecode mailing list