Le 2 avr. 08 à 18:18, Stéphane BOSSO a écrit :
> set the newFldr to (make new folder at folder generic_folder with
> properties
> ¬
> {name:{numero & "E[08]-" & project_name} as string}) as alias
>
>
> make new folder at folder the newFldr with properties ¬
> {name:{numero & "E[08]-" & project_name & "(PSD)"} as string}
> make new folder at folder the newFldr with properties ¬
> {name:{numero & "E[08]-" & project_name & "(EPS)"} as string}
> make new folder at folder the newFldr with properties ¬
> {name:{numero & "E[08]-" & project_name & "(Divers)"} as
> string}
> make new folder at folder the newFldr with properties ¬
> {name:{numero & "E[08]-" & project_name & "(EXE)"} as string}
Bonjour
Pour des sous-sous-dossiers je ferais ça.
property nom_Doss : {"Albert", "Bernard", "Claude", "Damien", "Emile",
"François", "Gaston", "Hector", "Isidore", "Jean"}
set Alias1 to choose folder
set theName to text returned of (display dialog "Nom du dossier"
default answer "François 1er")
set theNumber to text returned of (display dialog "Nombre de sous-
dossier à créer" default answer "10")
tell application "Finder"
set dir_1 to make new folder at Alias1 with properties {name:theName}
set dir_2 to make new folder at dir_1 with properties
{name:"Collaborateurs "}
set dir_3 to make new folder at dir_1 with properties
{name:"Personnel"}
set dir_4 to make new folder at dir_1 with properties
{name:"Corbeille"}
repeat with i from 1 to theNumber
make new folder at dir_2 with properties {name:((item i of nom_Doss))}
end repeat
end tell
Ca n'engage que moi, c'est pour inciter les maîtres en AppleScript de
te répondre.
En lieu et place de la variable property on doit pouvoir demander les
noms des sous-dossiers
en une seule fenêtre.
Tapez pas sur la tète, j'ai qu'un neurone.
Cordialement
Jean Louis
_______________________________________________
Applescript_fr mailing list
Applescript_fr@???
http://listes.patpro.net/mailman/listinfo/applescript_fr