• 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: Clint Hoxie <email@hidden>
  • Date: Mon, 17 Dec 2007 13:03:11 -0700

When using the following script, I am unable to get the if statement to equal true with any of the variations. What gives, please? Running 10.5.1, compiling with Script Editor 2.2.

-----------

set DayIndicator to weekday of (current date)
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

-----------

Clint
 _______________________________________________
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

  • Follow-Ups:
    • Re: trouble with weekday names
      • From: Michelle Steiner <email@hidden>
    • Re: trouble with weekday names
      • From: Brett Conlon <email@hidden>
    • Re: trouble with weekday names
      • From: Clifford Antrim <email@hidden>
  • Prev by Date: Re: How to associate a file with a script
  • Next by Date: Re: trouble with weekday names
  • Previous by thread: Re: How to associate a file with a script
  • Next by thread: Re: trouble with weekday names
  • Index(es):
    • Date
    • Thread