Questo applescript, si può migliorare?
grazie dei suggerimenti
Codice:
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 "buon giorno!"
if bp is true then say "buon pomeriggio!"
if bs is true then say "buona sera!"
if bn is true then say "buona notte!"
grazie dei suggerimenti
Ultima modifica di un moderatore: