• 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: Michelle Steiner <email@hidden>
  • Date: Mon, 17 Dec 2007 13:47:00 -0700

On Dec 17, 2007, at 1:03 PM, Clint Hoxie wrote:

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.

As implied in other replies, day of week is an enumerated type, not a string.

It can be cast as a string or as an integer, but the casting has to be explicit.

Monday = 2

--> false

Monday as integer = 2

--> true

Monday as text

--> "Monday"

-- Michelle

-- 
Don't dream it.  Be it.  --RHPS

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

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