string $text;
string $result = `promptDialog
    	-title "Renommer le cache"
    	-message "Entrez un nom (sans extenssion):"
    	-button "Ok" -button "Cancel"
    	-defaultButton "Ok" -cancelButton "Cancel"
    	-dismissString "Cancel"`;

    if ($result == "Ok") {
    	$text = `promptDialog -query -text`;
    }

		   
//Display the Attribute Editor for the cloth solver. 
//In the Cache Name box, enter a name for the cache.
	$text = $text+".mcc";
	setAttr -type "string" cpSolver1.cacheName $text;