Script Closes Early
Forums
Hello,
So I have this script that I've used countless times. I made a copy of it and within the copy made a few changes to the code to add some additional options. The issue is that when I run this new script it will sometimes run the entire script as it is supposed to perfectly, but then sometimes it just closes midway through. I've stepped through the program using the script editor and it works perfectly. I can't figure out why its closing early.
The other odd thing about this is that I've even run the old script file that I've used countless times and even it now is closing early at the same point. It works sometimes and then not others. It's very fustrating and I can't seem to find the cause for this especially since it works in debug mode and correctly sometimes and then not other times.
I am not sure off hand what
I am not sure off hand what might be doing it. If you can share the script I would have a look at it and see if there is anything I can pick out. You can send it to brian.element@ideascripting.com.
Brian
Hi Chris,
Hi Chris,
Did you happen to make any changes to a dialog? I have seen this happen where the syntax error is actually in the dialog but it shows up by giving strange errors in the script. If you do have dialogs and have made some changes to them look at them closely and make sure that you didn't remove something that you still have variables pointing to or something like that. Also if you have drop-downs with no arrays attached to them that can also cause some problems.
Brian