• 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: Why save text item delimiters? Philosophical question....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why save text item delimiters? Philosophical question....


  • Subject: Re: Why save text item delimiters? Philosophical question....
  • From: John Delacour <email@hidden>
  • Date: Mon, 16 Jun 2003 08:38:14 +0100
  • Mac-eudora-version: 6.0b20

At 8:05 pm -0700 15/6/03, Michelle Steiner wrote:

On Sunday, June 15, 2003, at 03:09 PM, David Crowe wrote:

nother way to look at it is to pose the question: "Would you use the text item delimiters without setting them to the needed value first?"

Um, because some other part of the code had set them, and expects them to be what they were set to. If you change them underneath, you should put them back the way you found them.

If, as David asks, you never use text item delimiters without setting the value first (and he might, and should, have added _IMMEDIATELY_before_using_them_), then it makes no difference.


set my text item delimiters to ""
doThis()
text items of "two words" is words of "two words"
on doThis()
set my text item delimiters to space
end doThis
--> true

doThis()
set my text item delimiters to "" -- and then immeditately...
text items of "two words" is words of "two words"
on doThis()
set my text item delimiters to space
end doThis
--> false

JD




.
_______________________________________________
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: Why save text item delimiters? Philosophical question....
      • From: John W Baxter <email@hidden>
    • Re: Why save text item delimiters? Philosophical question....
      • From: Michelle Steiner <email@hidden>
References: 
 >Re: Why save text item delimiters? Philosophical question.... (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Script Breaks in International 10.2.6
  • Next by Date: Re: Why save text item delimiters? Philosophical question....
  • Previous by thread: Re: Why save text item delimiters? Philosophical question....
  • Next by thread: Re: Why save text item delimiters? Philosophical question....
  • Index(es):
    • Date
    • Thread