Re: [AS] Remplacement de nom dans le Finder

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

Le 14 avr. 2008 à 10:23, Jill-Jênn VIE a écrit :
>
> 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


Je suppose qu'il y a d'autres solutions mais pour ma part, je coderais:

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

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