darkoli Le Petit Dinosaure Bleu | Alors je souhaite automatiser le traitement suivant :
Pour tout les fichiers d'un dossier :
- Ouvrir avec BBEdit
- Enregistrer avec BBEdit
bon c'est pas compliqué mais comment qu'on fait ?
En shell ça donne :
for fichier in "/home/toto/*"
do
[... instructions avec $fichier comme nom de fichier]
done
Ce qui me pose problème c'est le parcours du dossier ... ---------------
Le site de l'année :D (XHTML 1.0 strict) : http://darkoli.free.fr/index.html
|
darkoli Le Petit Dinosaure Bleu | Bon il ne me reste pluis qu'un problème : renommer un fichier ?
Code :
- tell application "Finder"
- set liste to every file of folder "01_etat_initial" of folder "maj_lot10_à_determiner" of folder "maj_prod_gc"
- end tell
- repeat with fichier in liste
- tell application "Finder"
- open fichier using file "BBEdit 4.5" of folder "BBEdit 4.5" of folder "Applications (Mac OS 9)" of startup disk
- end tell
- tell application "BBEdit 4.5"
- save window 1
- close window
- end tell
- end repeat
|
---------------
Le site de l'année :D (XHTML 1.0 strict) : http://darkoli.free.fr/index.html
|
Plus de sujets relatifs à : [AppleScript] Comment qu'on fait pour ... |
---|