Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!ncar!mailrus!chablis!shane From: shane@chablis.cc.umich.edu (Shane Looker) Newsgroups: comp.sys.mac.programmer Subject: Re: Alerts Message-ID: <869@mailrus.cc.umich.edu> Date: 14 Jan 89 20:44:19 GMT References: <598@cf-cm.UUCP> Sender: usenet@mailrus.cc.umich.edu Reply-To: shane@chablis.cc.umich.edu (Shane Looker) Organization: University of Michigan Computing Center, Ann Arbor Lines: 30 In article <598@cf-cm.UUCP> ralph@computing-maths.cardiff.ac.uk (Ralph Martin) writes: >I don't know if this can be done, but here goes... > >In the text for an alert, ^0,^1,^2,^3 are treated as special strings to be >replaced by ParamText. Believe it or not, I actually want the strings "^0" >and so on to appear in my alert, and not to be substituted. > >Is there any way of escaping them or otherwise when specifying the text in >a .r file for Rez, so that they come out literally and are not substituted? > >Or do I *have* to say something like ParamText("^0","^1","^2","^3"); ? > >Ralph WHATEVER YOU DO, DO NOT PUT "^0", "^1", ETC IN A STRING FOR SUBSTITUTION UNLESS YOU REALLY KNOW WHAT YOU ARE DOING!!!!!! There, now I'll explain why. It is very easy to cause an infinite recursion inside the toolbox by trying to substitute like this. I know, I did it once. The strings you pass in get re-expanded, and then re-parsed to check for any of the special sequences (e.g. "^0".) This is a great feature, but you can have problems with it. I would suggest putting a very narrow blank character between the "^" and the number. Shane Looker | Looker@um.cc.umich.edu America works less, when you say "Union Yes!"