• 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: "Eric Phillips" <email@hidden>
  • Date: Thu, 13 Jun 2002 13:11:15 -0400

In an attempt to learn more I have been reading this thread. I have one question from Ric Phillips' sample. Why do you use "every character of s"? Why wouldn't you just say "does not contain item i of s then"? A snippet of Ric's code is below.


repeat with i from length of s to 1 by -1
if ({space, return, tab, ""} does not contain item i of (every
character of s)) then
set s to (characters 1 thru i of s) as string
exit repeat
end if
end repeat


Eric Phillips
_______________________________________________
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.

  • Follow-Ups:
    • Re: can I do this better?
      • From: Ric Phillips <email@hidden>
  • Prev by Date: Odd Stack Overflow...
  • Next by Date: Re: quicktime and image sequence
  • Previous by thread: Re: can I do this better?
  • Next by thread: Re: can I do this better?
  • Index(es):
    • Date
    • Thread