Try something like this (untested):

   if the environment contains "mobile" then
      put (specialFolderPath("engine") & "/yourStackInEngine.livecode") into 
EngineStack
      put url ("binfile:" & EngineStack) into EngineStackPath
      put EngineStackPath into url ("binfile:" &   
(specialFolderPath("Documents") & "/yourStackOnDevice.livecode"))
      go stack specialFolderPath("Documents") & "/yourStackOnDevice.livecode"
   end if

Gerry



On 10/04/2012, at 5:12 PM, Gerry Orkin wrote:

> Yes.
> 
> Gerry
> 
> 
> 
> On 10/04/2012, at 3:47 PM, Geoff Canyon wrote:
> 
>> But is it possible to save out a
>> stack from the app locally, allowing it to be saved periodically and loaded
>> locally at startup?


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to