PS: There are big differences between gimp 2.10 and 3.0 so please clarify what version of gimp you're using in this case. Your profile says 3.0 but post #1 in this thread says '**GIMP Version:** 2.10.38'. Then again your post on your thread 'GIMP 3.0.4 Script-Fu Batch Issue: SF-TOGGLE Without Run-Mode' says 'gimp 3.0.4'.
As stated my above answer assumes you first post in this thread contains the appropriate version in this case.
As stated my above answer assumes you first post in this thread contains the appropriate version in this case.