Ton adresse web ne marchait pas alors...
Voici mon script, un peu modifé :
En plus du mot de passe,il demande si on veut jouer et si oui propose de lancer des jeux.
on opening folder Julien
tell application "Finder"
activate
display dialog "Dossier protegé !" & return & "Insérez votre mot de passe :" default answer "**************" buttons ("OK") default button "OK"
set LaReponse to (text returned of result) as text
if LaReponse is "19101985xxfuck" then
display dialog "On joue ?" buttons {"Oui", "Annuler"} default button "Annuler"
set LaReponse to button returned of result
if LaReponse is "Oui" then
display dialog "A quoi on joue ?" buttons {"Starcraft", "SC 3000", "Suite"}
end if
set LaReponse2 to button returned of result
if LaReponse2 is "Starcraft" then
tell application "Starcraft"
activate
end tell
else if LaReponse2 is "SC 3000" then
tell application "SC3"
activate
end tell
else if LaReponse2 is "Suite" then
display dialog "A quoi on joue ?" buttons {"Warcrat II", "StarWars Racer", "Suite"}
end if
set LaReponse3 to button returned of result
if LaReponse3 is "Warcraft II" then
tell application "Warcraft II"
activate
end tell
else if LaReponse3 is "StarWars Racer" then
tell application "Star Wars Episode I Racer"
activate
end tell
else if LaReponse3 is "Suite" then
display dialog "A quoi on joue ?" buttons {"Quake III", "Unreal Tournament", "Suite"}
end if
set LaReponse4 to button returned of result
if LaReponse4 is "Quake III" then
tell application "MacQuake3"
activate
end tell
else if LaReponse4 is "Unreal Tournament" then
tell application "Unreal Tournament"
activate
end tell
else if LaReponse4 is "Suite" then
display dialog "A quoi on joue ?" buttons {"Futur Cop", "Annuler"}
end if
set LaReponse5 to button returned of result
if LaReponse5 is "Futur Cop" then
tell application "FutureCop "
activate
end tell
end if
else if LaReponse is not "19101985xxfuck" then
display dialog "Mot de passe incorrect !" buttons "Retour" default button "Retour"
set LaReponse2 to button returned of result
if LaReponse2 is "Retour" then tell application "Finder" to close Julien
end if
end tell
end opening folder