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?
Search found 469 matches
- Fri Apr 26, 2024 6:37 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Force the script editor to update?
- Replies: 35
- Views: 2329
- Fri Apr 26, 2024 6:28 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Force the script editor to update?
- Replies: 35
- Views: 2329
- Fri Apr 26, 2024 1:06 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Force the script editor to update?
- Replies: 35
- Views: 2329
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...
- Wed Apr 24, 2024 2:48 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Force the script editor to update?
- Replies: 35
- Views: 2329
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...
- Tue Apr 23, 2024 12:49 pm
- Forum: Made With LiveCode
- Topic: FolderWasher - deletes specific OS invisible files
- Replies: 4
- Views: 766
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.
This is an idea for an update to not delete the .zip, .rar, .iso and .dmg files.
- Tue Apr 23, 2024 12:38 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Force the script editor to update?
- Replies: 35
- Views: 2329
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...
- Tue Apr 23, 2024 11:28 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: My masterpiece vanished.
- Replies: 11
- Views: 923
Re: My masterpiece vanished.
Don't worry, I found the masterpiece: it's at the Louvre Museum!
- Tue Apr 23, 2024 11:19 am
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Force the script editor to update?
- Replies: 35
- Views: 2329
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.
- Tue Apr 23, 2024 9:52 am
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Force the script editor to update?
- Replies: 35
- Views: 2329
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...
- Tue Apr 23, 2024 9:37 am
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Force the script editor to update?
- Replies: 35
- Views: 2329
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...
- Tue Apr 23, 2024 9:09 am
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Force the script editor to update?
- Replies: 35
- Views: 2329
Re: Force the script editor to update?
Maybe "lock messages" before closing?
- Tue Apr 23, 2024 9:05 am
- Forum: Made With LiveCode
- Topic: FolderWasher - deletes specific OS invisible files
- Replies: 4
- Views: 766
Re: FolderWasher - deletes specific OS invisible files
Well, it depends of your OS.lyricalback wrote: ↑Tue Apr 23, 2024 8:41 amSo with mistakenly deleted folders, is there any way to restore them?
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.
- Tue Apr 23, 2024 8:03 am
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Force the script editor to update?
- Replies: 35
- Views: 2329
Re: Force the script editor to update?
Here is my testing procedure: 1 - opening a test stack, let's call it "TestStack" 2 - opening another stack, let's call it "AnyStack" 3 - editing the script of some controls of the "AnyStack" stack 4 - editing the script of some controls of the "TestStack" stack 5 - the "TestStack" stack has its des...
- Mon Apr 22, 2024 6:11 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Force the script editor to update?
- Replies: 35
- Views: 2329
Re: Force the script editor to update?
Nice trick Richmond62 :) Though, I would prefer a "full script" way, if possible. If so, I get what you are saying, but also say that everything is working as advertised. After, all, even with the stack closed, you can still edit the scripts, and even save them, assuming the stack itself has only be...
- Mon Apr 22, 2024 12:45 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Force the script editor to update?
- Replies: 35
- Views: 2329
Force the script editor to update?
Hello, Is there a way to force the script editor to update its tabs when closing a stack? If I close a stack with locked messages and have some of its scripts opened in the script editor, the editor doesn't update and its tabs become nonsense. On the other hand, if I close a stack with unlocked mess...