• 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: Month as Integer (or he's ranting again)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Month as Integer (or he's ranting again)


  • Subject: Re: Month as Integer (or he's ranting again)
  • From: Nigel Garvey <email@hidden>
  • Date: Sat, 2 Dec 2000 18:30:56 +0000

Richard 23 wrote on Fri, 1 Dec 2000 01:25:21 -0800:

>Sun Real said:
>
>>The months names are constants, not variables. I haven't played with
>>this but I (a) don't think it could be made to work and (b) wouldn't
>>recommend trying to use constants as record labels in any case. The
>>fastest of these methods was posted by Michelle Steiner yesterday.
>
>Oh, come on! Thinking outside the box is fun!
>
>1. There's no such thing as a constant in AppleScript, although there
> are read only properties, of which the months are neither.
>
>2. If a word has already been defined by AppleScript it seems to me
> to be the only strings of characters that are pretty much
> guaranteed to taken away by an osax in which an author is
> allowed to be as reckless as they want, stealing names from
> the global namespace.
>
>3. The fastest? Do I smell a challenge? Did you benchmark the
> posted methods? Them's fightin' werds! 8)
>
>
>Look out. I'm about to sermonize about self-determinization again....
>
>Maybe it would be convenient to change all the occurrences of the
>constant "tab" to four spaces. If I uses the word "tab" rather than
>a literal (eg, ASCII Character 9, "\t", etc). I can do this very
>easily.
>
>----------
>
>set tab to " " -- four spaces. Now whereever my script uses
>tab, it uses the four spaces instead.

'tab' isn't a month, Richard.

NG


  • Prev by Date: Re: Month as Integer (or he's ranting again)
  • Next by Date: Re: Month as Integer (or he's ranting again)
  • Previous by thread: Re: Month as Integer (or he's ranting again)
  • Next by thread: Re: Month as Integer (or he's ranting again)
  • Index(es):
    • Date
    • Thread