• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
trouble with weekday names
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Install / Enable GetMilliSec
  • Next by Date: Re: trouble with weekday names
  • Previous by thread: Re: trouble with weekday names
  • Next by thread: Re: trouble with weekday names
  • Index(es):
    • Date
    • Thread