RE: "my TID" vs "Applescript's TID"
RE: "my TID" vs "Applescript's TID"
- Subject: RE: "my TID" vs "Applescript's TID"
- From: "Stockly, Ed" <email@hidden>
- Date: Mon, 14 Jan 2002 15:20:42 -0800
>
>For years I have been using the terminology:
>
> set my text item delimiters
>
>rather than the canonical
>
> set applescript's text item delimiters
>
>with no noticeable negative results.
>
>Is there any known difference?
I'm curious, have you used this in scripts from inside applications via a script menu? In those cases I think the ("me") becomes a reference to the application. If the application has TIDs, like Quark or HyperCard, you may get an unexpected result. (Although since the terminology is not identical it may still work). Have you run it within Smile?
>
>>The _implication_ is that the entity running the script ("me") has its own TID, which seems a safer approach than changing a fundamental property of
the entire language.
Well, either way AppleScript's TIDs are getting changed so I don't think you're getting any safety benefit at the cost of potential dangers.
Apple has hinted in the past that they may be improving TIDs in various ways in future releases. A side effect of those improvements could very well be that this unsupported, uncannonical command may stop working and suddenly every script you've written over the years with this method will have to be revised.
Another danger is that your script may find itself running in a context that does have it's own TIDs and your command may result in different behavior than expected with AppleScript's TIDs.
HTH,
ES