• 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
Re: corruption of variables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Re: corruption of variables (From: "Marc Rubin" <email@hidden>)

  • Prev by Date: Re: corruption of variables
  • Next by Date: Re: equal to is does not in Mail
  • Previous by thread: Re: corruption of variables
  • Next by thread: Is a network file in use?
  • Index(es):
    • Date
    • Thread