• 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
Re: trouble with weekday names
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: trouble with weekday names


  • Subject: Re: trouble with weekday names
  • From: Clint Hoxie <email@hidden>
  • Date: Mon, 17 Dec 2007 13:28:45 -0700

Gets a "true" on the full word (Monday and monday) iterations; a false on the partial word (Mon and mon).

Thanks. This will work, but still seems a bit screwy.

Clint


On Dec 17, 2007, at 1:18 PM, Clifford Antrim wrote:

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

 _______________________________________________
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: Doug McNutt <email@hidden>
References: 
 >trouble with weekday names (From: Clint Hoxie <email@hidden>)
 >Re: trouble with weekday names (From: Clifford Antrim <email@hidden>)

  • Prev by Date: Re: trouble with weekday names
  • 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