• 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: Thirteen Scripters Scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Thirteen Scripters Scripting


  • Subject: Re: Thirteen Scripters Scripting
  • From: "Mark J. Reed" <email@hidden>
  • Date: Wed, 24 Dec 2008 20:18:53 -0500

On Wed, Dec 24, 2008 at 8:07 PM, Michelle Steiner
<email@hidden> wrote:
> On Dec 24, 2008, at 4:35 PM, Mark J. Reed wrote:
>
>> set ordinals to {"st", "nd", "rd", "th"}
>
> While we're at it, you don't need that.
>
> Try this:
>
> repeat with x from 21 to 24
>        say (x as text) & "th"
> end repeat

Well, now, that's just cool.  Thanks!

Kind of a shame there's no built-in way to get the proper textual
form, though, rather than relying on the text-to-speech to transform
it.


--
Mark J. Reed <email@hidden>
 _______________________________________________
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

References: 
 >Thirteen Scripters Scripting (From: David Marshall <email@hidden>)
 >Re: Thirteen Scripters Scripting (From: "Mark J. Reed" <email@hidden>)
 >Re: Thirteen Scripters Scripting (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Thirteen Scripters Scripting
  • Next by Date: Re: Thirteen Scripters Scripting
  • Previous by thread: Re: Thirteen Scripters Scripting
  • Next by thread: Re: Thirteen Scripters Scripting
  • Index(es):
    • Date
    • Thread