• 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: Definitely a bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Definitely a bug


  • Subject: Re: Definitely a bug
  • From: Deivy Petrescu <email@hidden>
  • Date: Tue, 25 Dec 2001 11:00:34 -0500

Paul Berkowitz wrote:

I've been noticing that 'display dialog' is truncating its messages very
frequently in OS 10.1.x (AS 1.8.x and I think also 1.7, but I'm not sure),
when the message is much less than 255 characters long. It only happens when
there are 'returns' (carriage returns) within the message. But carriage
returns (usually '& return & return &' ) occur in about 95% of my display
dialogs, and this bug seems to be happening about 33% of those. That's an
awful lot of dialogs to check.

This particular bug has always been around in choose from list's 'prompt'..
But I'd never seen it in 'display dialog' until the most recent version(s)
of AS. How did it creep in, and - can it be removed?

I sent the following message to C. Nebel in November, which I think describes the same
problem.
I haven't heard anything back from him on it.

Steven Angier
Macsccript.com

It is kind of weird!
the following does not work:

display dialog " Line 1 Line 1 Line 1 Line 1 Line 1 Line 1 Line 1 Line 1 Line 1 Line 1
Line 2 Line 2 Line 2 Line 2 Line 2 Line 2 Line 2 Line 2 Line 2 Line 2
Line 3 Line 3 Line 3 Line 3 Line 3 Line 3 Line 3 Line 3 Line 3 Line 3
Line 4 Line 4 Line 4 Line 4 Line 4 Line 4 Line 4 Line 4 Line 4 Line 4
Line 5 Line 5 Line 5 Line 5 Line 5 Line 5 Line 5 Line 5 Line 5 Line 5
Line 6 Line 6 Line 6 Line 6 Line 6 Line 6 Line 6 Line 6 Line 6 Line 6
Line 7 Line 7 Line 7 Line 7 Line 7 Line 7 Line 7 Line 7 Line 7 Line 7
Line 8 Line 8 Line 8 Line 8 Line 8 Line 8 Line 8 Line 8 Line 8 Line 8
Line 9 Line 9 Line 9 Line 9 Line 9 Line 9 Line 9 Line 9 Line 9 Line 9
Line 10 Line 10 Line 10 Line 10 Line 10 Line 10 Line 10 Line 10 Line 10 Line 10
Line 11 Line 11 Line 11 Line 11 Line 11 Line 11 Line 11 Line 11 Line 11 Line 11
Line 12 Line 12 Line 12 Line 12 Line 12 Line 12 Line 12 Line 12 Line 12 Line 12
Line 13 Line 13 Line 13 Line 13 Line 13 Line 13 Line 13 Line 13 Line 13 Line 13
Line 14 Line 14 Line 14 Line 14 Line 14 Line 14 Line 14 Line 14 Line 14 Line 14
Line 15 Line 15 Line 15 Line 15 Line 15 Line 15 Line 15 Line 15 Line 15 Line 15
Line 16 Line 16 Line 16 Line 16 Line 16 Line 16 Line 16 Line 16 Line 16 Line 16
Line 17 Line 17 Line 17 Line 17 Line 17 Line 17 Line 17 Line 17 Line 17 Line 17
Line 18 Line 18 Line 18 Line 18 Line 18 Line 18 Line 18 Line 18 Line 18 Line 18
Line 19 Line 19 Line 19 Line 19 Line 19 Line 19 Line 19 Line 19 Line 19 Line 19" giving up after 2

However the following works fine:

display dialog " Line 1
Line 2
Line 3
Line 4
Line 5
Line 6
Line 7
Line 8
Line 9
Line 10
Line 11
Line 12
Line 13
Line 14
Line 15
Line 16
Line 17
Line 18
Line 19" giving up after 2

Another think that I did not know, the display dialog gets whatever text you put in quotation literally, accepting even new lines without a return command. I've seen that for scripts ( e.g., run script "I did not
know it worked")., but not for ddialog. Actually it kept the format pretty well too. I guess we get some bonuses at expense of something else. Since today is Christmas, let us look at the bright side, we got some bonuses...

Regards
Deivy Petrescu
http://www.dicas.com


References: 
 >Re: Definitely a bug (From: Steven Angier <email@hidden>)

  • Prev by Date: Re: Scale a GIF with QT: possible?
  • Next by Date: Re: Scale a GIF with QT: possible?
  • Previous by thread: Re: Definitely a bug
  • Next by thread: Scale a GIF with QT: possible?
  • Index(es):
    • Date
    • Thread