• 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: can I do this better?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can I do this better?


  • Subject: Re: can I do this better?
  • From: Paul Berkowitz <email@hidden>
  • Date: Fri, 14 Jun 2002 10:03:18 -0700

On 6/14/02 8:49 AM, "Arthur J. Knapp" <email@hidden> wrote:

> Another thing I would do is to try to limit the number of times it is
> nessesary to "munge" the string. It is better to simply use a variable
> index to keep one's place in the string:
>
> set i to str's length
> repeat while (str's character i = trimChar)
> set i to i - 1
> end
> set str to str's text 1 thru i

Very good, Arthur. I like that.

--
Paul Berkowitz
_______________________________________________
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.

References: 
 >Re: can I do this better? (From: "Arthur J. Knapp" <email@hidden>)

  • Prev by Date: Re: OS X: determine if Explorer is Classic
  • Next by Date: Re: applescript-users digest, Vol 3 #547 - 12 msgs
  • Previous by thread: Re: can I do this better?
  • Next by thread: Re: can I do this better?
  • Index(es):
    • Date
    • Thread