Pagina 1 di 1

Sto imparando e chiedo consiglio

Inviato: mer, 05 dic 2018 17:30
da Eno
Questo applescript, si può migliorare?

set ad to current date
set hr to ad's hours
set bd to hr ≥ 6 and hr ≤ 12
set bp to hr ≥ 13 and hr ≤ 17
set bs to hr ≥ 18 and hr ≤ 22
set bn to hr ≥ 23 and hr ≤ 5
if bd is true then say "good morning!"
if bp is true then say "good afternoon!"
if bs is true then say "good evening!"
if bn is true then say "good night!"

grazie dei suggerimenti

Re: Sto imparando e chiedo consiglio

Inviato: gio, 06 dic 2018 14:39
da Phate
Hai sbagliato forum... :)
questo potrebbe esserti utile...
https://forum.mrwebmaster.it/forums/javascript.17/