Il saggio coltiva mac, tanto windows si pianta da solo... There is no dark side in the moon, really. Matter of fact it's all dark. The only thing that makes it look light is the sun.
mattleega ha scritto:@Mickie probabilmente funziona solo su Leopard e Snow Leo.
Tranquilla però tra breve, con Leon, non funzionerà più lo stesso!
E… 'nfatti!
Anche se sono convinta che fare uno scriptino che fa quel conticino lì, su Mac OS X, non ci voglia niente… un giorno, forse, imparerò anche io!
Mickie ha scritto:Anche se sono convinta che fare uno scriptino che fa quel conticino lì, su Mac OS X, non ci voglia niente… un giorno, forse, imparerò anche io!
Guarda questo che c'entra poco ma lo puoi modificare tu visto che ora ho poco tempo:
set tempo to (current date)
set anno to year of tempo as string
-- set meseT to month of tempo as string
set mese to month of tempo as number as string
if length of mese is 1 then set mese to "0" & mese
-- set giornoT to weekday of tempo as string
set giorno to day of tempo as string
if length of giorno is 1 then set giorno to "0" & giorno
set ora to hours of tempo as string
if length of ora is 1 then set ora to "0" & ora
set minuti to minutes of tempo as string
if length of minuti is 1 then set minuti to "0" & minuti
set secondi to seconds of tempo as string
if length of secondi is 1 then set secondi to "0" & secondi
tell application "Finder"
try
make new file at desktop with properties {name:(anno & "_" & mese & "_" & giorno & "__" & ora & "_" & minuti & "_" & secondi)}
end try
end tell
Questo crea un file sulla scrivania con un nome formato da data e ora tipo "2011_03_01__09_44_03". Tu puoi modificarlo per fargli fare una sottrazione e magari usare un display dialog per mostrare semplicemente il risultato. Se hai domande, per le quali non è detto che io abbia risposte, spostiamoci in una discussione apposta.