Anyone know how to script import package?

Same as selecting Assets menu, Import Package…

I want to be able to do in script.

So far I can Open a standard dialog, to find the .unitypackage file, but I don’t know how to import the package?

var path = EditorUtility.OpenFilePanel("Import package...", Application.dataPath, "unitypackage");

Any help greatly appreciated, so far all I can find is info on importing single assets?

Have you looked at the Neodrop’s open source project? http://forum.unity3d.com/threads/47696-Antares-Project-(Open-Source)-1.5.5-Coming-soon

He does a lot of Unity Editor stuffs. Just a thought. Anyway, I hope that Unity buy your code tips and put them in the Unity script reference document.