[OS X TeX] Applescript-tcl dictionary, wishlist
Claus Gerhardt
gerhardt at math.uni-heidelberg.de
Thu Jan 6 22:36:02 CET 2005
The problem is not so much foolish file content but foolish users - I
am not thinking of you Jon. In the example below simply use
> set findText to "sin(x)"
> set replaceText to "cos(x)"
and all is well.
Claus
On Jan 6, 2005, at 19:54, Jon Guyer wrote:
> Joachim can provide interim DoScript solutions if he likes, although I
> think quoting is going to remain a problem, even if you don't permit
> foolish file names. Foolish file contents are much harder to ban.
> E.g.,
>
> set findText to "$sin(x)$"
> set replaceText to "$cos(x)$"
>
> tell application "AlphaX"
> DoScript "eval replaceText " & "[search -r 0 " & findText & " " &
> "[minPos]]" & " " & "{" & replaceText & "}"
> end tell
>
> will complain:
> can't read "sin(x)": no such variable
> or even
> can't read "sin(x)": no such element in array
>
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
More information about the macostex-archives
mailing list