I can't figure out if this is possible or not.
Where it says "create location" . .. . {input attributes} would ideally be the name of the (first?) tag in the file name.
tell application id "com.devon-technologies.thinkpro2"
launch
set theDatabase to open database "/Users/russell/Docs-DO NOT SYNC/Devon Think/Statements (locked).dtBase2"
set theGroup to create location "Statements (locked)/{inputAttributes}" in theDatabase
import theFile to theGroup
end tell
Obviously this will just create a folder called "Statements (locked)/{inputAttributes}", as opposed to using the variable, which isn't helpful

I did click the "Add any attributes to be imported into this script" and selected "Tags", I just can't figure out how to actually get the tag into the script, particularly into the correct section of the script.