Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1344 connectés 

  FORUM HardWare.fr
  Programmation
  Divers

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

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

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

n°230001
darkoli
Le Petit Dinosaure Bleu
Posté le 18-10-2002 à 12:12:34  profilanswer
 

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
mood
Publicité
Posté le 18-10-2002 à 12:12:34  profilanswer
 

n°230168
darkoli
Le Petit Dinosaure Bleu
Posté le 18-10-2002 à 16:10:07  profilanswer
 

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

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  Divers

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

 

Sujets relatifs
Plus de sujets relatifs à : [AppleScript] Comment qu'on fait pour ...


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR