Doesn't matter, also works with Livecode files.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller
Most likely the file paths are incorrect, as Richard noted. It sounds like you have the setup correct:maxs wrote: ↑Wed May 09, 2018 1:00 amHi Klaus,
Yes, This is how I originally had it. The stack.livecode ("Testb") was included in the Splash.livecode ("Testa") via the "Copy files" tab , before making the standalone
So the Splash.livecode standalone would create a stack.livecode in the documents folder that was completely empty.
The url("binfile:...) into url ("binfile:...) only made an empty copy of a file.
SO why doesn't the work? Why is the file empty? Did you see may examples files. It seems I followed your directions completely but the file is still empty.
Densely yours, Max
Code: Select all
put specialFolderPath("resources") & "/stackB.livecode" into tSourcePath
put specialFolderPath("documents") & "/stackB.livecode" into tDestPath
put ("binfile:" & tSourcePath) into ("binfile:" & tDestPath)
Code: Select all
...
put specialFolderPath("resources") & "/stackB.livecode" into tSourcePath
put specialFolderPath("documents") & "/stackB.livecode" into tDestPath
## Check fi stack is already present:
if there is not a file tDestPath then
put URL("binfile:" & tSourcePath) into URL("binfile:" & tDestPath)
end if
## This is the important line, we have to open THIS stack of course:
GO STACK tDestPath
...