On Sep 6, 2009, at 2:01 PM, Deivy Petrescu wrote:
On 06/09/2009, at 15:05 , Robert Poland wrote:
On Sep 6, 2009, at 12:53 PM, Deivy Marck Petrescu wrote:
set wakeTime to "6:01"
set WakeUpTime to short date string of (current date)
display dialog wakeTime as string --> 6:01
display dialog WakeUpTime as string --> 9/6/09
set WakeUpTime to date (WakeUpTime & ":" & wakeTime)
display dialog WakeUpTime as string --> Sunday, September 6, 2009 12:00AM
set pad to "0"
set h to (time of WakeUpTime) div (1 * hours)
if h < 10 then set h to pad & h
set m to ((time of WakeUpTime) mod (1 * hours)) div (1 * minutes)
if m < 10 then set m to pad & m
set s to (time of WakeUpTime) mod (1 * hours) mod (1 * minutes)
if s < 10 then set s to pad & s
display dialog (h & ":" & m & ":" & s) --> 00:00:00
I got you, Yvan.
But now we know something is wrong with Bob's machine!!!!
:)
Bob, seriously, I've run this script in Leopard and SL and it works in both.
So something is wrong with your settings.
Deivy Petrescu
email@hidden