script error -> reopen

i wonder
when i worked with script , there is problem often
then i have to reopen manually

i would like to reopen script automaticly when script was error

is there good idea ?

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
miauu's picture

I have to see the code.If

I have to see the code.
If ... then ... else is for 2 conditions.

Maybe the code can be fixed and the errors will not occurs.

miauu's picture

Try with this:

(
try(
    --script body
)
catch(
    -- reopen the script
)
)

So, the script have to be unencrypted.
IF you want you can send me the script and I will try to "fix" it.

dussla's picture

i wonder some

there is 2 conditions

1. try ( destroy ~)

2. try ( if reopen becoming error)

pls can you make 2 condition possible in 1 script ?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.