InDesign CS2 import INX and save with filename?

When InDesign CS2 opens an INX file it converts it to an Untitled document. Is there a script that will get the filename, open the job then save it with the filename instead of Untitled?

If script is opening your file for you then you can set the name to a variable before opening the file.

set This_INX to choose file
set OrigName to name of (info for This_INX)