trouble with weekday names
trouble with weekday names
- Subject: trouble with weekday names
- From: David Crowe <email@hidden>
- Date: Mon, 17 Dec 2007 15:43:00 -0700
Title: trouble with weekday names
Clint;
With the following code:
set DayIndicator to
weekday
of (current date)
return class of
DayIndicator
It returns "class" as the class of weekday!
Your code works if you add "as string" to the end of
the first line
set DayIndicator to
weekday
of (current date) as string
display dialog DayIndicator
if DayIndicator = "Mon" then
set
DayIndicator
to
"Today"
end if
display dialog DayIndicator
if DayIndicator = "Monday" then
set
DayIndicator
to
"Today"
end if
display dialog DayIndicator
if DayIndicator = "mon" then
set
DayIndicator
to
"Today"
end if
display dialog DayIndicator
if DayIndicator = "monday" then
set
DayIndicator
to
"Today"
end if
display dialog DayIndicator
- David Crowe
_______________________________________________
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