Faire un fichier ISO
Posté le 18 janvier, 2009 dans AppleScript, Mac | Aucun Commentaire »
Voici un script AppleScript qui permet de réaliser rapidement un ISO à partir d’un dossier du disque dur ou bien du lecteur de CD :
set inputFolder to choose folder with prompt "Sélectionner le dossier source:" without invisibles set inputPath to (POSIX path of inputFolder) set baseName to do shell script "basename "" & inputPath & """ set desktopPath to the path to the desktop folder set outputISO to choose file name with prompt "Sélectionner le fichier ISO à créer:" default name baseName & ".iso" default location desktopPath without invisibles set outputPath to (POSIX path of outputISO) set cmd to "hdiutil makehybrid -o "" & outputPath & "" -udf -iso -joliet "" & inputPath & """ do shell script cmd