Re: set oldDelims to AppleScript's text item delimiters
Re: set oldDelims to AppleScript's text item delimiters
- Subject: Re: set oldDelims to AppleScript's text item delimiters
- From: "Stockly, Ed" <email@hidden>
- Date: Fri, 18 Jan 2008 10:40:14 -0800
- Thread-topic: set oldDelims to AppleScript's text item delimiters
>>>Shane>>They're global to the instance running them. So they're also global,
for example, if you use them in a script run from an app's script menu or
palette; the settings will affect other scripts run the same way.
>>
>> With Script Debugger they are local to each script and at runtime
>> they are local to each script.
>
> That's because each script in SD4 runs in a separate instance of AS.
>>
>> My recollection is that back in the day, they would be global to all
>> appleScripts running on the system at the time. (or something like that)
>
> No -- that was the (incorrect, as it happens) perceived wisdom.
I may be mistaken, but I believe going way way back that there was only ever
one instance of appleScript active which made them global across the system
and when multiple instances of AppleScript were available, they were unique
to each instance.
>>Yvan>>This is why I met oddities but I didn't check if it was changed when
OSX was introduced.
I don't think so, this particular change predates OSX.
You can, however, use TID's without knowing it. Any time you coerce a list
of strings to a single string, you're using TIDs and they'll use whatever
value your script (or the current instance of AppleScript) has set.
>>>Luther>>>Does this mean that I don't have to worry about resetting the TIDS
to default in applications?
By applications do you mean appleScript applets? In that case the answer is
no. If, by applications you mean scripts run from within an application, via
a script menu or a scripts palette, then the answer might be yes. However...
>>>I follow the practice of setting the TIDS just before use
If you consistently follow this practice in every case, you should be fine.
ES
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden