Re: Finding and deleting specific extensions.
Re: Finding and deleting specific extensions.
- Subject: Re: Finding and deleting specific extensions.
- From: Christopher Nebel <email@hidden>
- Date: Mon, 15 Sep 2003 11:32:59 -0700
On Sep 15, 2003, at 11:05 AM, Christopher Nebel wrote:
[1] Actually, the magic name depends on the name of the "Cancel"
button in your primary language. For a French user, for example,
this would be "Annuler".
Is there any way for U.S. scripters to ensure that the Cancel button
will work in non-U.S. systems? If not, can we get it "bugged"? :)
Not at this time, unless someone has come up with some really clever
hack that I don't know about. Reliable world-wide
internationalization of scripts is a difficult problem which we are
gradually working on solving. I'll write a bug on this particular
aspect, since I don't think anyone has yet. However, whatever the
solution is would involve changing the usage of "display dialog"
somewhat, unless we want to be English-centric and say that the button
string "Cancel" is always the localized "Cancel". (Hm, that might
actually work pretty well.)
I'm sorry, I must be going senile. In fact, I implemented something
very like this a year and a half ago -- it's in 10.2. If you use the
string "Cancel" (any capitalization), it will be interpreted as a
cancel button no matter what your primary language is. The primary
language version (e.g., "Annuler") will also work, but only if that
language is primary.
The remaining bug, if you want to consider it that, is that the button
title shows up exactly as it's typed in the script. For example,
'display dialog "Frotz the potrzebie?" buttons {"Cancel", "Frotz"}'
will always show buttons with the titles "Cancel" and "Frotz", not
"Annuler" and "Frotz", or whatever. This is arguably correct -- that
is the string the script specified -- but it seems sub-optimal, so I've
filed a bug.
--Chris Nebel
AppleScript Engineering
_______________________________________________
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.