• 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: text manipulation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: text manipulation


  • Subject: Re: text manipulation
  • From: Shane Stanley <email@hidden>
  • Date: Thu, 07 Jun 2001 09:15:33 +1000

> Date: Tue, 05 Jun 2001 12:47:08 EDT
> From: email@hidden
> Subject: text manipulation
>
> I have a time string as follows "10:56 am". I have been trying to figure out
> a
> way to change "am" to "a.m." or to "a.m", with no luck : ). Anybody have a
> clue? Thanks.

For something different:

set theTime to "10:56 am"
set theOffset to offset of " " in theTime
if time of date theTime > 43199 then
set theTime to text 1 thru theOffset of theTime & "p.m."
else
set theTime to text 1 thru theOffset of theTime & "a.m."
end if

--
Shane Stanley, email@hidden


References: 
 >Re: text manipulation (From: Arthur J Knapp <email@hidden>)

  • Prev by Date: Re: Deleting Folders
  • Next by Date: Re: applescript-users digest, Vol 2 #732 - 16 msgs
  • Previous by thread: Re: text manipulation
  • Next by thread: Re: text manipulation
  • Index(es):
    • Date
    • Thread