• 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: coercing a list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: coercing a list


  • Subject: Re: coercing a list
  • From: Michelle Steiner <email@hidden>
  • Date: Wed, 29 Aug 2001 09:25:20 -0700

On 8/29/01 7:16 AM, Ray Phillips <email@hidden> wrote:

>Why does
>
> {"a", "b", "c"} as string
>
>yield "a b c" instead of "abc" ?

It yields "abc" on my system. Have you been modifying text item
delimiters?

>I'd like to truncate a string using this statement
>
> copy ((characters 1 thru ((number of characters in nn) - 1)) of nn) as
>string to nn

Well, you could simplify that to

copy text 1 thru -2 of nn to nn

then you won't have to worry about characters or lists, or anything like
that.

Or if you really want to use characters, you can do it this way:

copy (reverse of rest of reverse of characters of nn) as text to nn

--Michelle

----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------


  • Follow-Ups:
    • Re: coercing a list
      • From: Ray Phillips <email@hidden>
  • Prev by Date: Re: Process all files in a text list!
  • Next by Date: Scripting "Hide" others, etc. via process
  • Previous by thread: Re: coercing a list
  • Next by thread: Re: coercing a list
  • Index(es):
    • Date
    • Thread