Applescript can't tell time?
Applescript can't tell time?
- Subject: Applescript can't tell time?
- From: Robert Poland <email@hidden>
- Date: Tue, 3 Feb 2004 10:01:03 -0700
Why doesn't this script work?
set nowDate to (current date)
set nowTime to "" & time string of (nowDate)
set bedTime to "8:59.00 PM" as text --> "8:59.00 PM"
set nowTime to nowTime as text --> "9:57:26 AM"
if (nowTime is less than bedTime) then
set x to 1
else
set x to 2
end if
x --> 2
Tia,
--
Bob Poland - Englewood, CO
http://www.ibrb.org/
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.