• 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
TIDs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

TIDs


  • Subject: TIDs
  • From: Dave Stewart <email@hidden>
  • Date: Wed, 6 Nov 2002 09:58:57 -0800

On Wednesday, November 6, 2002, at 07:36 AM, email@hidden wrote:

I am trying to learn AS and I see references to tid's. What does that mean?

Look over some of the sample code thrown about in this list and you'll figure it out pretty quickly (at least I think I did).

"Text Item Delimiters", or TID's, are separators between text items (strings?). For example, with something like "drive/folder/file" the TID is '/'. AppleScript allows us to change them to suit our needs.

Anyone want to correct me, I'm not very experienced with AS myself (only worked with it once and it was in the last month), but this one seems simple enough.

By the way, I have been getting a kick out of the "TID's 'n AS" thread. My upshot is if you change something (like a TID) you should save the previous state and restore it afterward. Using it doesn't always change it though and I don't see how using it could screw anything up. So if you CHANGE the TID, it's polite (safer) to save and restore it. We can joke about the TID police all we want, but if you program defensively you are LESS likely to encounter a weird bug in your code which resulted from sloppiness (and others won't cringe when dealing with your code).


TIA

YW


Dave Stewart
Aqua-flo (Goleta)
email@hidden
_______________________________________________
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: Comments, please.
  • Next by Date: Automating a task in the finder
  • Previous by thread: Re: login script
  • Next by thread: Automating a task in the finder
  • Index(es):
    • Date
    • Thread