Re: [AS] Remplacement de nom dans le Finder

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Jill-Jênn VIE
Date:  
À: La liste AppleScript Francophone
Sujet: Re: [AS] Remplacement de nom dans le Finder
On 14 avr. 08, at 14:08:05, Serge Ségu wrote:

> 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


Oui oui, j'ai écrit un truc similaire, et ça marchait.
Mais c'est marrant que le code ci-haut ne fonctionne pas.

-- 
Jill-Jênn
http://mickay.jill.free.fr/score/



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