Save a Clone
Posted: Wed Nov 16, 2016 5:52 pm
I would like to clone a stack from a standalone and then save it to the documents folder. So that I can save data.
I have tried this:
on mouseUp
local tFolderPath
local tStack
put SpecialFolderPath ("documents") into tFolderPath
Clone this stack
set the name of stack "Copy of New Test" to "New Testt1"
set the filename of stack "New Test1" to tFolderPath
put "New Test1" into tStack
save stack "New Test1"
Put tFolderPath &"/New Test1.livecode" into fld "GoGet" of Stack "Opener"
Answer tFolderPath &"/New Test1.livecode"
end mouseUp
This renames the clone but does not save the clone to the Documents folder.
Thanks in advance for your help!
I have tried this:
on mouseUp
local tFolderPath
local tStack
put SpecialFolderPath ("documents") into tFolderPath
Clone this stack
set the name of stack "Copy of New Test" to "New Testt1"
set the filename of stack "New Test1" to tFolderPath
put "New Test1" into tStack
save stack "New Test1"
Put tFolderPath &"/New Test1.livecode" into fld "GoGet" of Stack "Opener"
Answer tFolderPath &"/New Test1.livecode"
end mouseUp
This renames the clone but does not save the clone to the Documents folder.
Thanks in advance for your help!