• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Renaming Files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Renaming Files
  • Next by Date: Re: Changing creation date of a file
  • Previous by thread: Re: Renaming Files
  • Next by thread: Re: Renaming Files
  • Index(es):
    • Date
    • Thread