[AppleScript] Comment qu'on fait pour ...

Comment qu'on fait pour ... [AppleScript] - Divers - Programmation

Marsh Posté le 18-10-2002 à 12:12:34    

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
Reply

Marsh Posté le 18-10-2002 à 12:12:34   

Reply

Marsh Posté le 18-10-2002 à 16:10:07    

Bon il ne me reste pluis qu'un problème : renommer un fichier ?

Code :
  1. tell application "Finder"
  2. set liste to every file of folder "01_etat_initial" of folder "maj_lot10_à_determiner" of folder "maj_prod_gc"
  3. end tell
  4. repeat with fichier in liste
  5. tell application "Finder"
  6.  open fichier using file "BBEdit 4.5" of folder "BBEdit 4.5" of folder "Applications (Mac OS 9)" of startup disk
  7. end tell
  8. tell application "BBEdit 4.5"
  9.  save window 1
  10.  close window
  11. end tell
  12. end repeat


---------------
Le site de l'année :D (XHTML 1.0 strict) : http://darkoli.free.fr/index.html
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed