Delete stack problem
Posted: Thu Apr 26, 2018 1:06 pm
Background to my question
I have modified the great 'Script Reporter' app to additionally bulk export scripts from my .livecode and .rev files in a folder called "My Projects". I scrape the Script Reporter output for each livecode/rev application into individual text files and an overall text file. Each export text file is timestamped and there is a text comparison card added to review differences between versions of my scripts.
The stack for each livecode/rev file is opened using 'go invisible'. The scripts within the newly loaded stack are retrieved and the stack is then closed (so it remains in memory).
Once all the livecode/rev files have been processed there is a repeat loop which deletes all the stacks in memory (except Script Reporter itself)
The Problem
Whenever a stack is opened and the stack name is the same as a previously loaded stack a prompt displays asking whether to purge the previous stack with the same name. this requires the user to click the 'Purge' button.
I would like to avoid this by deleting the previous stack from memory before loading the next livecode/rev file to stop the Purge prompt from coming up.
I have tried ...
a) 'delete stack nameofpreviouslyloadedstack' before I load the next file but it does not remove the previous stack from memory. Tried this in LC 8.1.8 and LC 9.0.0
b) replacing 'close stack x' with 'delete stack x' but Purge message still comes up
Any ideas would be appreciated
Cheers
Allan at ADXSoft
I have modified the great 'Script Reporter' app to additionally bulk export scripts from my .livecode and .rev files in a folder called "My Projects". I scrape the Script Reporter output for each livecode/rev application into individual text files and an overall text file. Each export text file is timestamped and there is a text comparison card added to review differences between versions of my scripts.
The stack for each livecode/rev file is opened using 'go invisible'. The scripts within the newly loaded stack are retrieved and the stack is then closed (so it remains in memory).
Once all the livecode/rev files have been processed there is a repeat loop which deletes all the stacks in memory (except Script Reporter itself)
The Problem
Whenever a stack is opened and the stack name is the same as a previously loaded stack a prompt displays asking whether to purge the previous stack with the same name. this requires the user to click the 'Purge' button.
I would like to avoid this by deleting the previous stack from memory before loading the next livecode/rev file to stop the Purge prompt from coming up.
I have tried ...
a) 'delete stack nameofpreviouslyloadedstack' before I load the next file but it does not remove the previous stack from memory. Tried this in LC 8.1.8 and LC 9.0.0
b) replacing 'close stack x' with 'delete stack x' but Purge message still comes up
Any ideas would be appreciated
Cheers
Allan at ADXSoft