Le 15 juin 2009 à 15:47, Roland Bena a écrit :
> Bonjour,
>
> J'ai essayé ce script
>
> --[SCRIPT]
> set dossierSource to "Disque_2:prix_revendeur"
> tell application "System Events"
>
> make new file at end of folder dossierSource with properties
> {name:"la_totale.txt"}
> end tell
> set nouveau to dossierSource & "la_totale.txt" as alias
> repeat with i from 1 to 1366
> set source to text -5 thru -1 of ("00000" & i) & ".txt"
> write (return & source & return) to file (dossierSource & source)
> starting at eof
> set textI to read file (dossierSource & source)
> write textI to nouveau starting at eof
> end repeat
> --[/SCRIPT]
>
>
> Toutefois le script s'arrete à la création du fichier
> "la_totale.txt" ?
Normal
vous avez omis le séparateur ":" dans la construction de nouveau.
Il faudrait coder:
set nouveau to (dossierSource & ":la_totale.txt") as alias
Yvan KOENIG
_______________________________________________
Applescript_fr mailing list
Applescript_fr@???
http://listes.patpro.net/mailman/listinfo/applescript_fr