• 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: Limiting number of dialog characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Limiting number of dialog characters


  • Subject: Re: Limiting number of dialog characters
  • From: Malcolm Fitzgerald <email@hidden>
  • Date: Tue, 1 Oct 2002 11:36:34 +1000

Does anyone know how I can limit the amount of characters that can be
entered in a dialog display? I want to limit the input characters to 22 by
not letting anymore than 22 characters be entered. Much like entering a
registration number.


repeat
set _prompt to "Enter Serial #"
display dialog _prompt default answer ""
set _response to text returned of result
if (count _response) = 22 then exit repeat
beep
end repeat
--
--
Malcolm Fitzgerald email@hidden
Database Manager http://www.asauthors.org
The Australian Society of Authors ph: 02 93180877 fax: 02 93180530
_______________________________________________
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.

References: 
 >Limiting number of dialog characters (From: Roger Hie <email@hidden>)

  • Prev by Date: Re: Faster way to replace text in AppleWorks?
  • Next by Date: Re: Adding a message to a mailbox in Mail
  • Previous by thread: Limiting number of dialog characters
  • Next by thread: Limiting number of dialog characters
  • Index(es):
    • Date
    • Thread