Sto imparando e chiedo consiglio

Mac OS X e le sue Applicazioni

Moderatore: ModiMaccanici

Eno
Stato: Non connesso
Nuovo Maccanico
Nuovo Maccanico
Iscritto il: mer, 05 dic 2018 17:20
Messaggi: 2

Top

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

Avatar utente
Phate
Stato: Non connesso
Expert
Expert
Avatar utente
Iscritto il: sab, 18 feb 2012 20:27
Messaggi: 6927

Top

Hai sbagliato forum... :)
questo potrebbe esserti utile...
https://forum.mrwebmaster.it/forums/javascript.17/
 iMac 2,5 Ghz Intel Core i5 quad-core (Late 2011) SSD 256 GB Samsung Serie 830
 Mac Mini M1 2020 SSD 512 GB & 16GB di Ram
Nas DiskStation DS1513+
Apc Smart-Ups 1000Va Lcd 230V

Immagine
canale y o u t u b e
j u z a photo
[/i]

Rispondi

Torna a “Software”

Chi c’è in linea

Visitano il forum: Nessuno e 17 ospiti