Weird Language Features
Donal K. Fellows
fellowsd at cs.man.ac.uk
Thu Feb 22 04:54:16 EST 2001
John Schmitt <jschmitt at vmlabs.com>
> Doesn't Applescript do something like this? I recall browsing the docs
> where they mentioned that you can program Applescript in more than one
> dialect. I guessed from the docs that you can write Applescript program in
> English, French, and Japanese. If you write an Applescript program in one
> language (ie English), change your dialect (ie to French) and load the
> program in your editor again, the source code will show up in the new
> language (ie French). Do I understand that correctly?
It's a Mac, so I've no idea! I have heard rumours to this effect
though.
However, to me this says that the raw program text is a binary form
that is never actually displayed to anyone in the normal course of
things. Furthermore, this auto-translation is deeply unlikely to
affect the bits of the program that usually need attention; strings
shown to users (and possibly the names of identifiers in the program
if you need it to be maintained by someone with a different native
language.) Somehow I'm fairly sure that AppleScript can't change the
language of those automatically (since no-one else in the world can
either, as many manuals are ample demonstration of... :^)
A downside of this is that it makes it difficult for people in
different countries to discuss applescript properly, since a correct
example fragment for one person might be complete gibberish for
another. You'd have to pass structured documents about instead of
just plain text messages... :^(
Donal.
--
Donal K. Fellows, Department of Computer Science, University of Manchester, UK.
(work) fellowsd at cs.man.ac.uk Tel: +44-161-275-6137 (preferred email addr.)
(home) donal at ugglan.demon.co.uk Tel: +44-1274-401017 Mobile: +44-7957-298955
http://www.cs.man.ac.uk/~fellowsd/ (Don't quote my .sig; I've seen it before!)
More information about the Python-list
mailing list