I save as standalone for osx... and remove the previous saved file from preferences... run the app.
Runs as expected, first run... ( so the created stack is being called, and all is well)
Second run is a different story,. It does not show any data at all in the result field...?
!6 hours on this i have spent ;-( I am sure i will get there soon

Here is the last code used:
Code: Select all
local tFilePath
on openStack
put specialFolderPath("preferences") into tFilePath
put tFilePath & "/myprefs.livecode" into tFilePath
if not (there is a file tFilePath) then
create stack tFilePath
set the filename of stack tFilePath to tFilePath
save stack tFilePath
--hide newstack
else
go stack tFilePath
--save stack tFilePath
--hide stack tFilePath
--go this stack
end if
set the username of stack tFilePath to "user"
set the settings of stack tFilePath to "1,2,3,4,5"
wait 3 seconds
put empty into field "result"
wait 3 seconds
put the username of stack tFilePath into field "result"
wait 2 seconds
put the settings of stack tFilePath after field "result"
end openStack
on shutdown
save stack tFilePath
pass shutdown
end shutdown