• 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: Nigel Garvey <email@hidden>
  • Date: Thu, 7 Jun 2001 00:20:19 +0100

Arthur J Knapp wrote on Tue, 05 Jun 2001 19:33:11 -0400:

>> 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.
>
>set s to "10:56 am"
>
>(text 1 thru 6 of s) & "a.m."
>-- > "10:56 a.m."

Or, of course, for all-day use:

set s to "10:56 am"

(text 1 thru -2 of s) & ".m."
-- > "10:56 a.m."

set s to "10:56 pm" ....

NG


  • Prev by Date: Re: newbie text manipulation
  • Next by Date: Re: deleting folders
  • Previous by thread: Re: text manipulation
  • Next by thread: Re: text manipulation
  • Index(es):
    • Date
    • Thread