• 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: bug or feature?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug or feature?


  • Subject: Re: bug or feature?
  • From: Christopher Nebel <email@hidden>
  • Date: Wed, 26 Dec 2001 12:55:11 -0800

On Tuesday, December 25, 2001, at 05:30 PM, Steven Angier wrote:

Paul Berkowitz wrote:

Where do you see it says "Cancel" should throw an error number -128, Deivy?
That's what display dialog does, not choose from list. (Very inconsistent,
yes. I think it's derived from the history that these were once separate
scripting additions, 'choose from list' being a 3rd-party, GTQ osax.)

I was not aware of the command's GTQ origins but, in any case, it is clear to me that the
behaviour is a bug as it is inconsistent with its documentation and with the other
AppleScript UI commands.

In my opinion a cancel button should always generate a user cancelled error (number -128).

I'm not sure I'd call this a bug -- it's working as designed, and changing it could cause great havoc -- but it should at least be documented. (It's not inconsistent with its documentation, because it hasn't got any aside from the dictionary, and that doesn't specify what happens when you cancel the dialog. You could make some reasonable guesses, but they'd be wrong, which is part of the problem.) I've filed a bug.


--Chris Nebel
AppleScript Engineering


References: 
 >Re: bug or feature? (From: Steven Angier <email@hidden>)

  • Prev by Date: newbie question: define a variable?
  • Next by Date: Re: Scale a GIF with QT: possible?
  • Previous by thread: Re: bug or feature?
  • Next by thread: RE: bug or feature?
  • Index(es):
    • Date
    • Thread