Hello,
I have a script file which contains 4 handlers. I am calling these handlers from another master script file, and working fine except some handlers. I don’t see any odd in those specific handlers as well and I can run them If I select those lines and run.
Also, tried to add some test handlers in that file in different places, and these are being called as expected.
Nothing general comes to mind really. Would need to see your stuff. Are you getting an error, or is it just seemingly skipping it?
In general, when I have to debug such things I just make a copy of everything and then start ‘dumbing’ it down. Make the handler’s just log stuff and not do anything. Little by little until it works, then you know what you removed is the cause.
Sometimes functions especially can get called in ‘weird’ complicated ways where they might get skipped due to syntax issues. Like sensetalk doesn’t interpret them as functions at all but just useless properties. I do that sometimes.
Found the issue. I was using myList.count property rather than number of items in myList
The problem is that the Eggplant didn’t raise any error if there is no such keyword or syntax supported, just runs and comes out without executing further inside the Repeat loop. So, couldn’t find the issue until I thought through simply (by ignoring all my coding knowledge of other languages )