This method presents a system file save chooser. The method returns a
                
basics::array. The array contains 1 element which contains the current selection as
                a string. If the dialog is canceled, the array will be empty. 
function onSaveDialog()
{
    // Save File dialog.
    var filter = "Box Files (*.box)|*.box|All Files (*.*)|*.*||";
    var fileList = appUtils.saveFileDialog(scene, "Save File", null, null, filter, "txt");
    if (fileList)
    {
        // File list count should come back 1. Can only select 1 file when saving.
        var count = fileList.count;
        if (count == 1)
        {
            shell.print("filename = " + fileList.getValue(0));
        }
    }
}