I execute some command that imports a JSON structure into a tiddler.
I now wish to split up this blob into its parts.
I succeed to do this - if I do them separately. The problem is (or at least seems to be) that the splitting up starts before the importing is finished, so the imported tiddler doesn’t yet exist. Hence no splitting. If I execute the splitting on the tiddler from the previous import, the splitting works.
The import is executed via a button. I’ve tested the utilizing the innate order in which (I think) buttons execute things, i.e:
<$button
set/setTo=executedthird
actions=executedfourth
>
executedfirst
executedsecond
</$button>
but this is not enough, I guess the import is just too slow (even though it really appears very fast to me).
I obviously don’t want to manually execute the two things separately, so what can be done to delay that second action until the first is actually finished (and the resulting tiddler from that action exists)?
Thank you.