Re: [AS] Remplacement de nom dans le Finder

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Serge Ségu
Date:  
À: La liste AppleScript Francophone
Sujet: Re: [AS] Remplacement de nom dans le Finder

On 14 avr. 2008, at 10:23, Jill-Jênn VIE wrote:

> tell application "Finder"
>     set jee to folder "jee" of desktop
>     set liste to {}
>     repeat with i in jee
>         if name of i ends with "b.png" then
>             set name of i to "p" & (name of i)
>         end if
>     end repeat
> end tell


et qcq chose du genre ?

tell application "Finder"
    set myliste to (every file of (folder "jee" of desktop) whose name
ends with "b.png")
    repeat with theFile in liste
        set the name of theFile to "p" & the name of theFile
    end repeat
end tell

Serge

_______________________________________________
Applescript_fr mailing list
Applescript_fr@???
http://listes.patpro.net/mailman/listinfo/applescript_fr