         }
         for (key, value) in data {
             if (key == keyCopied) {
-                copyFiles(value as! Array, type: type, useRoot: false)
+                copyAssets(value as! Array, type: type, useRoot: false)
             }
             else if (key == keyAppIcon) {
                 copyAppIcon(value as! String, type: type)

        return ok
    }

    private func copyFiles(files: [String], type: LangType, useRoot: Bool) -> Void {
        // our copy function is special
        
        for file in files {
            let filePath = sourceAssetFolder! + "/" + file
            var destFile:String
            if (useRoot) {
                destFile = outputAssetFolder! + "/" + (file as NSString).lastPathComponent
            }
            else {
                destFile = outputAssetFolder! + "/" + file
            }
            let destPath = (destFile as NSString).stringByDeletingLastPathComponent
            createFolder(destPath)
            if (copyFile(filePath, dest: destFile) == false) {
                exit(-1)
            }
        }
    }
    
    private func copyFile(src: String, dest: String) -> Bool {
        deleteFile(dest)
        var ok = true
        do {
            try NSFileManager.defaultManager().copyItemAtPath(src, toPath: dest)
            debug("Copy \(src) -> \(dest)")
        }
        catch {

    
    // Save image, tinted
    func saveImage(image: NSImage, file: String) -> Bool {
        if (testTint) {
            let tint = NSColor.greenColor().colorWithAlphaComponent(0.5)
            let tintedImage = image.tint(tint)
            return tintedImage.saveTo(file)
        }
        else {
            return image.saveTo(file)
        }
    }
    
    private func writeImageStringArray(stringArray: Dictionary<String, AnyObject>, type: LangType) -> String {
