Le 03/10/2012 à 20:35, Nicolas Michel <Nicolas-Michel@???> a écrit :
> Hello
>
> Je ne pratique pas ce machin que vous nommez AppleScript,
> mais en bash :
>
> rm -rf PATH/*
> rm -rf PATH/.*
>
> ça retourne une petite erreur mais ça fonctionne.
>
> Du coup, est-ce que
> do shell script "rm -R "& quoted form of posix path of cheminHFSduDossier & "/*"
> ne serait pas viable ?
>
> (question naive)
MERCI
C'est la commande que je recherchais en vain dans mes tablettes.
Un ménage de printemps trop prononcé a du en avoir raison.
Je l'ai intégrée sous la forme :
set newFolderPath to (path to desktop as text) & "dossier sans titre:" as alias
quoted form of POSIX path of newFolderPath
do shell script "rm -R " & result & "/*"
et cette fois, je vais la ranger en lieu sur.
Yvan KOENIG (VALLAURIS, France) mercredi 3 octobre 2012 20:45:50
_______________________________________________
archives :
http://listes.patpro.net/list/sshfr.fr.html
http://listes.patpro.net/mailman/listinfo/script_shell_fr