• 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: Strip characters without recursive loop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strip characters without recursive loop


  • Subject: Re: Strip characters without recursive loop
  • From: kai <email@hidden>
  • Date: Tue, 19 Aug 2003 23:41:56 +0100

on Wed, 20 Aug 2003 07:24:39 +1000, Duncan Cowan wrote:

> However I am confused by John Delacore's response:
>
>> A perfect example of why NEVER to use "the..." at the beginning of a
>> variable name.
>
> I have quite a few scripts lying around that use "the..." at the start of
> the variable name....
> does this cause conflict with some additions?

Although you were using pseudo-code, I believe John was referring to a typo
in your original - caused by our natural reflex to type a space after the
word 'the':

> set theString to "1234-56abc"
^^^^^^^^^
> set theResult to characters of the string whose kind is integer
^^^^^^^^^^

--> "Can't get every character of string."

However, I'm kinda curious, Duncan. With questions of this sort, there's
usually a pattern to the sequence of alpha and numeric characters. If there
*is* a pattern, then there may be another way to isolate the sequence of
numeric characters. Or are your strings in this case completely random?

---
kai
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Recording
  • Next by Date: Silly question?
  • Previous by thread: Re: Strip characters without recursive loop
  • Next by thread: Re: Strip characters without recursive loop
  • Index(es):
    • Date
    • Thread