urgh... I thought it HAD been updated, but didn't study it.
There's also this lesson which is nominally for mobile but applies some of the required techniques
http://lessons.livecode.com/m/4069/l/15 ... ile-device
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
urgh... I thought it HAD been updated, but didn't study it.



Code: Select all
on openStack
   set the defaultFolder to specialFolderPath("documents")
   put URL ("file:test.txt") into tSec
   put tSec into field "fsField"
end openStack
on shutdown
   set the defaultFolder to specialFolderPath("documents")
   put "second" into URL ("file:test.txt")
   pass shutdown
end shutdown
 
 Code: Select all
on openStack
   put specialFolderPath("documents") & "/test.txt" into tFile
   IF THERE IS A FILE TFILE then
     put URL ("file:" & tFile") into tSec
  ELSE
     put "No file yet!" into tSec
 end if
 put tSec into field "fsField"
end openStackCode: Select all
on shutdown
   put specialFolderPath("documents") & "/test.txt" into tFile
   put "second" into URL ("file:" & tFile)
   if the result <> EMPTY then
     answer "Error writing file!" & CR & the result & CR & syserror()
  end if
  pass shutdown
end shutdown 
 
"Isn't working" is hard to fix.