Weird dialog box...
Weird dialog box...
- Subject: Weird dialog box...
- From: Deivy Petrescu <email@hidden>
- Date: Tue, 11 Nov 2003 22:19:01 -0500
Try the following with Panther: (have not tried it with Jaguar)
----
set x to text returned of (display dialog "Please enter the volume in
liters of the bigger container (an even integer divisible by 4)"
default answer "" default button 2 giving up after 10)
if x mod 4 is not 0 then
display dialog "This problem does not have a solution..." & return &
return & "Do you want me to waste cycles?" buttons {"no"} default
button 1 giving up after 6
error number -128
end if
---
Now enter "no", without "" on the dialog filed. What is that that
you see?
You can try with other words. It is fine
The other interesting outcome is with "true", no "". false is fine!
What is going on?
Regards
Deivy
http://www.dicas.com/
_______________________________________________
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.