You might take a look at this old tutorial and ToasterScript file... I think it is exactly what you need.

http://www.newtek.com/vt/tutorial_import.php

Kris