Re: Limiting number of dialog characters
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.