Re: date/Snow Leopard changed
Re: date/Snow Leopard changed
- Subject: Re: date/Snow Leopard changed
- From: Axel Luttgens <email@hidden>
- Date: Sun, 6 Sep 2009 17:27:04 +0200
Le 2 sept. 09 à 17:11, Robert Poland a écrit :
Hi,
Going through my scripts in Snow Leopard I ran into one that is
being stubborn;
set WakeUpTime to "6:01"
[...]
set nowTime to (current date)
set wakeTime to date (date string of nowTime & ":" & WakeUpTime) --
NOTE use of ":"
[...]
Hello Robert,
Tried here under 10.5.8, and the box indeed didn't complain; it even
yielded a somewhat consistent result.
I thus woke up my 7.6.1 system, with AppleScript 1.1; and yes, it
didn't choke too.
But does this prove that SLeopard does things wrong?
After all, one is building such a string
dimanche 6 septembre 2009:6:01
and then ask to parse that string as a valid date representation; but,
at the very least, it contains a very strange mix of time units.
Looking back at the ASU for 1.3.7, the numerous examples provided for
textual date representation never show such a combination.
So, the question that first comes to the mind is: why didn't you make
use of " " instead of ":" in the above concatenation? Wouldn't it have
been more kosher?
The second question being thus: what gives
date (date string of nowTime & " " & WakeUpTime)
under SLeopard?
Axel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden