Benvenuto Visitatore ( Log In | Registrati )
![]() ![]() |
30 Jul 2008, 12:53
Messaggio
#1
|
|
|
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 |
|
|
|
|
|
|
|
![]() ![]() |
| Titolo discussione | Risposte | Autore discussione | Visite | Ultima azione | |||
|---|---|---|---|---|---|---|---|
![]() |
4 | Tevac | 933 | 3 April 2007 - 17:29 Ultimo messaggio di: sirguich_ |
|||
![]() |
23 | mmatinalli | 853 | 17 September 2005 - 18:32 Ultimo messaggio di: mmatinalli |
|||
![]() |
16 | dmbit | 266 | 12 May 2004 - 13:34 Ultimo messaggio di: dmbit |
|||
|
Versione Lo-Fi | Oggi è il: 3 December 2008 - 03:41 |
| IP.Board Skin Developed By Creative Networks | ||