Don't load a file that is not an image

Ken Ray kray at sonsothunder.com
Mon Feb 27 08:09:58 CST 2006


On 2/27/06 6:11 AM, "Reinhold Venzl-Schubert" <r.venzl-schubert at t-online.de>
wrote:

> Hi!
> 
> I wrote a script to load an image, but when I select a file, that is
> not an image, I get an error message.
> 
> How can I avoid the selection of a wrong file.
> This script don't works:
> 
> on mouseUp
>    answer file "Please select an image:"

Check out the "answer file with type" entry in the docs - you can limit the
selections for the user to only images... something like:

answer file "Select an image:" with type "All
Images|jpg,gif,png|JPEG,GIFf,PNGf"

... etc.

HTH,

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com



More information about the metacard mailing list