date/Snow Leopard changed
date/Snow Leopard changed
- Subject: date/Snow Leopard changed
- From: Robert Poland <email@hidden>
- Date: Wed, 2 Sep 2009 09:11:13 -0600
Hi,
Going through my scripts in Snow Leopard I ran into one that is being
stubborn;
set WakeUpTime to "6:01"
set SleepTime to "21:01"
set nowTime to (current date)
set wakeTime to date (date string of nowTime & ":" & WakeUpTime) --
NOTE use of ":"
set bedTime to date (date string of nowTime & ":" & SleepTime) -- NOTE
use of ": "
display dialog nowTime & return & bedTime & return & wakeTime as string
if (nowTime is less than bedTime) and (nowTime is greater than
wakeTime) then
display dialog "You should be awake"
end if
This used to work with Leopard. Removing the first "date"s, at least
gets the time but then errors later.
Help.
TIA
Bob Poland - Fort Collins, CO
_______________________________________________
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