Re: Renaming Files
Re: Renaming Files
- Subject: Re: Renaming Files
- From: Deivy Petrescu <email@hidden>
- Date: Sat, 28 Jul 2001 22:54:04 -0400
At 5:48 PM -0700 7/28/01, Christopher Nebel wrote:
Correct. If you don't give explicit button names, then you get the
default "ok" and "cancel", appropriately translated, and all the
standard behavior that goes with them. If you do, then "display
dialog" checks to see if any of them matches the name of the cancel
button as it appears in the addition resources. If it does, then
that one is the cancel button. This means that you can do something
like 'buttons {"Cancel", "Rename"}' or even 'buttons {"Rename",
"Cancel"}' and the button that says "cancel" will act like it, but
only on English systems. This is a weakness, certainly, but it's
not possible to fix it without changing the syntax for "display
dialog."
--Chris Nebel
AppleScript Engineering
That is a good piece of information. I can shave a good amount of
code with that.
Let the system handle the "OK" and "Cancel". Very Good indeed!
Deivy Petrescu
http://www.dicas.com