• 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: display dialog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: display dialog


  • Subject: Re: display dialog
  • From: Kai <email@hidden>
  • Date: Mon, 23 Jun 2003 03:37:09 +0100

on Fri, 20 Jun 2003 10:44:31 -0700, Paul Berkowitz wrote:

> On 6/19/03 10:42 AM, "Robert Poland" <email@hidden> wrote:
>
>> Is there a simple way to get display dialog to display more than 255
>> characters?
>
> There's neither a simple way nor a complicated way. There is no way.
> 'display dialog' can only display 255 characters. I find it gets me to make
> things shorter and clearer. ;-)

I agree that it's a healthy discipline and that shorter dialogs are
generally preferable. (Some users seem to pay them scant attention anyway -
or is my cynicism showing just a little?)

> You can get the 3rd-party '24U Appearance OSAX' whose 'display better
> dialog' lets you display a whole book's worth if you want to.

If you can't avoid a long message, and prefer to use a vanilla method, I
suppose you could always display it (as Gary hinted) in < 255-character
chunks - something like this:

--===================

to displayLong(msg)
set {x, e, a, c, p, n, d} to {1, count msg, "", "Cancel", "< Prev",
"Next >", "Done"}
set b to {c, n}
repeat until a is d
set a to (display dialog msg's item x buttons b default button (count
b))'s button returned
if a is p then
if x is e then set b's last item to n
set x to x - 1
if x is 1 then set b to {c, n}
else
if x is 1 then set b to {c, p, n}
set x to x + 1
if x is e then set b's last item to d
end if
end repeat
end displayLong

set msg to {"Start of some very long message.", "Middle of some very
long message.", "End of some very long message."}

displayLong(msg)

--===================

-------------------------------------------------------
(Any wrapped lines abutting the left edge of the window
should be reconnected to the end of the previous line)
-------------------------------------------------------

--
Kai
_______________________________________________
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.

  • Follow-Ups:
    • Re: display dialog
      • From: "Steven D. Majewski" <email@hidden>
  • Prev by Date: Re: FileMaker styled text [part 2 of 2]
  • Next by Date: Re: Path To blessed items (OSX and OS9): Odd or Normal?
  • Previous by thread: Re: display dialog
  • Next by thread: Re: display dialog
  • Index(es):
    • Date
    • Thread