Version imprimable du sujet

Cliquez ici pour voir ce sujet dans son format original

Forums MacBidouille _ La Programmation En Général _ Script pour vider poubelle

Écrit par : frankie00 20 Jun 2017, 10:48

Voici un script pour vider la poubelle de façon amusante:


Code
set userName to short user name of (system info)
tell application "Finder"
    if not items of trash is {} then
        tell me to say userName & "Appuyez sur la touche Haine teure pour vider la corbeille " speaking rate 180 modulation 7 using "Virginie"
        ignoring application responses
            empty trash
        end ignoring
    else
        tell me to say "Appelez les pompiers " & userName & "le SAMU et le Gé IGé èNe. Rien dans la corbeille" speaking rate 200 modulation 127 using "Virginie"
    end if
    
end tell


Ce script est naturellement modifiable au niveau du choix des voix, de ses inflexions et du texte. A votre goût...

Propulsé par Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)