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

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


  • Subject: Why save text item delimiters? Philosophical question....
  • From: David Crowe <email@hidden>
  • Date: Sun, 15 Jun 2003 16:09:18 -0600

One of the common aspects of all scripts that use the AppleScript text item delimiters is that first they are saved, then set to the desired value, then used, then restored.

In my mind, the first and last steps are a waste of time. If every script always sets the delimiters to the desired value, then there should be no need to restore them, and the code to save/restore is just a waste.

The only problem that I can see is that while using the text item delimiters your script calls a function that sets them to a different value, but even limiting this to the case where the code between setting and usage of the delimiters has no function calls, clearly this seems like an anachronism.

Another 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?"

- David Crowe
_______________________________________________
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: Christopher Nebel <email@hidden>
    • Re: Why save text item delimiters? Philosophical question....
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Sherlock problems
  • Next by Date: GUI Script Printing Problem Solved :-)
  • Previous by thread: Re: Sherlock problems
  • Next by thread: Re: Why save text item delimiters? Philosophical question....
  • Index(es):
    • Date
    • Thread