IPB     Il futuro di Tevac dipende da te!  

Benvenuto Visitatore ( Log In | Registrati )

  · · · · · · · · · · · ·
Reply to this topicStart new topic
> annotare rapidamente l'ora, (o il tempo in generale)
kato
messaggio 30 Jul 2008, 12:53
Messaggio #1


Level 4/11
****

Gruppo: Forum User +
Messaggi: 382
Iscritto il: 17-September 07
Da: Roma (in teoria), quasi Varese (in pratica)
Utente Nr.: 8.750



Salve a tutti,

Spesso mi serve di annotare rapidamente l'ora per misurare processi vari ed allora ho tirato giù queste due righe per creare sulla scrivania un file vuoto di testo, nominato secondo l'ora nel formato HH_MM_SS:

CITAZIONE
tell application "Finder"
     set tempo to (current date)
     set ora to hours of tempo as string
     set minuti to minutes of tempo as string
     set secondi to seconds of tempo as string
     try
          make new file at desktop with properties {name: (ora & "_" & minuti & "_" & secondi)}
     end try
end tell

-------------------------
[This script was automatically tagged for color coded syntax by Convert Script to Markup Code]

Ovviamente è adattabile a piacimento anche per calcolare differenze o per usare le altre proprietà di current date (year, month, weekday, day, hours, minutes, seconds).

Saluti,

Giulio
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

 

Collapse

> 

    Titolo discussione Risposte Autore discussione Visite Ultima azione
No New Posts   4 Tevac 933 3 April 2007 - 17:29
Ultimo messaggio di: sirguich_
No new   23 mmatinalli 853 17 September 2005 - 18:32
Ultimo messaggio di: mmatinalli
No new   16 dmbit 266 12 May 2004 - 13:34
Ultimo messaggio di: dmbit

Modalità di visualizzazione: Normale · Passa a: Lineare · Passa a: Outline


RSS Versione Lo-Fi Oggi è il: 3 December 2008 - 03:41
IP.Board Skin Developed By Creative Networks