Re: How many tids are there? ah one...ah two...
Re: How many tids are there? ah one...ah two...
- Subject: Re: How many tids are there? ah one...ah two...
- From: Paul Skinner <email@hidden>
- Date: Thu, 21 Jun 2001 19:39:33 -0400
on 6/21/01 3:11 PM, Arthur J Knapp wrote:
>
> Date: Wed, 20 Jun 2001 14:41:07 -0400
>
> Subject: How many tids are there? ah one...ah two...
>
> From: Paul Skinner <email@hidden>
>
>
> AppleScript's text item delimiters -->{""}
>
> TID(":")--a handler that changes the IDs to the parameter passed to it.
>
> AppleScript's text item delimiters -->{""}
>
> my AppleScript's text item delimiters -->{":"}
>
>
> What is that?
>
>
I am unable to duplicate the return values that you are showing above.
>
Can you provide the TID handler? Also, the script editor that you are
>
using may also be a facter.
The handler was simple...
on tid(parameters)
try
set AppleScript's text item delimiters to parameters as text
end try
return AppleScript's text item delimiters
end tid
I'm using Scripter 2.5, but that wasn't it.
>
>
> ... I thought T.I.D.s was a system wide property.
>
>
Not really. The text item delimiters is a "script runner" wide property.
>
When you are debugging several scripts in a script editor, all of them
>
are sharing the same tids, because they are all in the same "script"
>
environment. Script applications, however, cannot affect the tids for
>
other script applications.
I was loading the 'TID(parameters)' handler from a HandlerServer
application. This is what caused the error. I was unaware that TIDs were
limited in scope to the application in which they are modified. Are there
any other AS properties or constants that this applies to? All of them
perhaps?
>
>
> Ignoring anything the handler does, I didn't think that there could be
>
> more than one instance of the TIDs.
>
> Yes, I'm doing something strange, but still...
>
>
This really sounds like a third-party script editor difference to me.
Nope, just ignorance.
>
>
>
Arthur J. Knapp
"AppleScript is digital duct tape."
--Paul Skinner