I suggest you use another method for this. If you're doing it from a
document-level script then use a pop-up menu or a dialog or something like
that. The addToolButton method should really be used from a folder-level
script.
I suggest you use another method for this. If you're doing it from a
document-level script then use a pop-up menu or a dialog or something like
that. The addToolButton method should really be used from a folder-level
script.