Re: corruption of variables
Re: corruption of variables
- Subject: Re: corruption of variables
- From: Victor Yee <email@hidden>
- Date: Wed, 24 Mar 2004 16:21:47 -0500
Marc Rubin wrote:
>
is the lack of response to this an effort to avoid starting the TID wars
>
again?
TID wars?
If changing TIDs is creating a problem, keep in mind that you need to be polite when modifying a global.
If you're changing the text item delimiters, error trap the code and reset the TIDs in case of failure.
For example:
on doDelimFuse(thisLst, delimStr)
set oldTIDs to text item delimiters
set text item delimiters to delimStr
try
set thisLst to thisLst's text items as string
on error errMsg number errNum
set text item delimiters to oldTIDs
error errMsg number errNum
end try
set text item delimiters to oldTIDs
return thisLst
end doDelimFuse
Victor
p.s. I have no idea if TIDs are the cause of the original poster's problem.
_______________________________________________
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.