Don't load a file that is not an image

Reinhold Venzl-Schubert r.venzl-schubert at t-online.de
Wed Mar 1 14:46:53 CST 2006


Hi!

I think  >  answer file "Select an image:" with type "..." <  works  
well on Macs. But when I get an image from a Win-User, the image has  
no type.

I will follow the advice of Klaus "catch errornum"

Thanks
Reinhold


Am 27.02.2006 um 19:00 schrieb Ken Ray:

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



More information about the metacard mailing list