Standalone opens stack and then quits
bvlahos at mac.com
Wed Oct 13 00:30:33 CDT 2004
I have a standalone which is built primarily to be the engine so it can
open a stack which can save its data. If I build a standalone with the
following in the stack script it works fine as long as the "stack.rev"
file is at the same level as the standalone:
open stack "stack.rev"
However, what I want to do is have the standalone give me the ability
to select which stack(s) I want it to open. It does, in fact, open it,
but then it immediately quits taking both the standalone and the stack
down. I can't figure out why it is quitting. There is no quit stack
command and it does correctly open the stack I select.
set the defaultFolder to "DataFolder" -- data folder at same level of
put the files into field "fListFiles" -- puts a list of files in a
put the hilitedLines of fld "fListFiles" into tList -- the selected
line(s) in the field
repeat with x = 1 to the number of items in tList
put (line (item x of tList) of field "fListFiles") into tpath
open stack tPath
This is driving me crazy. It actually opens the file I want (I can see
it flash) but then quits.
Why and how do I make it stop?
More information about the use-livecode