Search found 457 matches

by Zax
Sun Apr 28, 2024 8:47 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Force the script editor to update?
Replies: 35
Views: 915

Re: Force the script editor to update?

Thank you Jacqueline for these explanations. Is there a reason you need it? I suppose not. Normally, the cantDelete of my stacks is false but when a stack has a variable number of cards and the user can easily delete cards, I feared that the user would delete all the cards and therefore delete the s...
by Zax
Sat Apr 27, 2024 11:22 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Force the script editor to update?
Replies: 35
Views: 915

Re: Force the script editor to update?

richmond62 wrote:
Sat Apr 27, 2024 9:10 am
Maybe you could make a stack that loads with LC as a palette that has a scrolling list of all open stacks and a button to delete a selected stack.
Yes, I have that. It is precisely for my development palette that I needed this kind of script.

pal.jpg
pal.jpg (25.11 KiB) Viewed 72 times
by Zax
Sat Apr 27, 2024 8:11 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Force the script editor to update?
Replies: 35
Views: 915

Re: Force the script editor to update?

After several tests, the following script to close and remove a target stack from memory seems to work. It has to be called from another stack (otherwise, use the File menu article Close and Remove from Memory ). The delete stack command works very cleanly: the main stack and its substacks are close...
by Zax
Fri Apr 26, 2024 6:37 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Force the script editor to update?
Replies: 35
Views: 915

Re: Force the script editor to update?

I think I found a clue: if the main stack to be closed has its cantDelete property set to true, the delete stack command gets stuck.
Is this a bug due to the double meaning of delete stack?
by Zax
Fri Apr 26, 2024 6:28 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Force the script editor to update?
Replies: 35
Views: 915

Re: Force the script editor to update?

jacque wrote:
Fri Apr 26, 2024 6:05 pm
Where is the handler that deletes the stack?
In another stack (a real other main stack).
by Zax
Fri Apr 26, 2024 1:06 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Force the script editor to update?
Replies: 35
Views: 915

Re: Force the script editor to update?

I wrote a new script based on delete stack . The "delete stack" command works very cleanly: the main stack and its substacks are closed, the script editor is updated but, in some cases, I get the following error: execution error at line n/a (Object: stack locked, or object's script is executing) nea...
by Zax
Wed Apr 24, 2024 2:48 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Force the script editor to update?
Replies: 35
Views: 915

Re: Force the script editor to update?

Thank you for all your answers :) It's unfortunate that MC chose such a confusing term for removing a stack from memory. Right. I guess it cames from "delete variable" that remove a variable from memory. Anyhow, thanks, I didn't know this use of the "delete" command. @ Bernd : awesome script! Though...
by Zax
Tue Apr 23, 2024 12:49 pm
Forum: Made With LiveCode
Topic: FolderWasher - deletes specific OS invisible files
Replies: 4
Views: 434

Re: FolderWasher - deletes specific OS invisible files

BTW, FolderWasher doesn't delete folders, just files, unless the folders have been compressed as .zip files.
This is an idea for an update to not delete the .zip, .rar, .iso and .dmg files.
by Zax
Tue Apr 23, 2024 12:38 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Force the script editor to update?
Replies: 35
Views: 915

Re: Force the script editor to update?

2. Stop those messages from shiwing up in the Message Watcher. I bet on this. After digging in the IDE scripts, I wrote this script but I don't like it. 1 - I'm not sure it performs all the actions that should be 2 - I don't really like calling commands from the IDE scripts because they are of cour...
by Zax
Tue Apr 23, 2024 11:28 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: My masterpiece vanished.
Replies: 11
Views: 455

Re: My masterpiece vanished.

Don't worry, I found the masterpiece: it's at the Louvre Museum! :wink:

img.jpg
by Zax
Tue Apr 23, 2024 11:19 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Force the script editor to update?
Replies: 35
Views: 915

Re: Force the script editor to update?

At least it would be useful if I could retrieve the list of open scripts in the editor. I could thus check if the stack that I want to close has some of its scripts edited, and warn.
by Zax
Tue Apr 23, 2024 9:52 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Force the script editor to update?
Replies: 35
Views: 915

Re: Force the script editor to update?

Use the lock messages command when a handler performs an action (such as opening a stack) and you want to speed up access by preventing unnecessary navigation messages (such as openStack) from being sent. Well, obviously one of the "unnecessary navigation messages" concerns closing script editor wi...
by Zax
Tue Apr 23, 2024 9:37 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Force the script editor to update?
Replies: 35
Views: 915

Re: Force the script editor to update?

However, I have to ask: Why are you locking the messages in the first place? For information, it is for the script of a button of a personal development tools palette which must close in a somewhat brutal way the stacks which I no longer use. When developing, I often open several stacks to copy ele...
by Zax
Tue Apr 23, 2024 9:09 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Force the script editor to update?
Replies: 35
Views: 915

Re: Force the script editor to update?

richmond62 wrote:
Tue Apr 23, 2024 8:29 am
What am I missing?
Maybe "lock messages" before closing?

Test.livecode.zip
(1 KiB) Downloaded 6 times
by Zax
Tue Apr 23, 2024 9:05 am
Forum: Made With LiveCode
Topic: FolderWasher - deletes specific OS invisible files
Replies: 4
Views: 434

Re: FolderWasher - deletes specific OS invisible files

lyricalback wrote:
Tue Apr 23, 2024 8:41 am
So with mistakenly deleted folders, is there any way to restore them?
Well, it depends of your OS.
As it is said in the "Help/About" window:
WARNING: deleted files are moved to trash on MacOS but there are permanently deleted on Windows and cannot be recovered.

Go to advanced search