Scripts don’t trigger smart rules IIRC; this is to avoid infinite loops and other unexpected behaviour. The script can activate the on move
trigger for the item if you add the following line, though: perform smart rule trigger move event record theRecord
(assuming theRecord
is the variable you have chosen for the item in your script).
Edit: I think that currently won’t work; perform smart rule
won’t run from within a “performSmartRule” script handle; again, if I understand the mechanics correctly, this will be changed in the next release.
Edit of the Edit: whilst the dictionary still says “NOTE: This can’t be used in “performSmartRule” script handlers of smart rules.”, the change in behaviour was implemented in DT 3.8.4, so actually it should work (@cgrunenberg is the dictionary in need of update?)