Testing if an image is empty (blank)?
Trevor DeVore
lists at mangomultimedia.com
Wed Aug 17 13:46:30 EDT 2005
On Aug 16, 2005, at 11:26 AM, david bovill wrote:
> Thanks of the tip - works great for image object.
>
> On 16 Aug 2005, at 17:44, Derek Bump wrote:
>
>
>> if (the imagePixMapID of img "testImage") is empty then
>> answer "Unable to open the selected image." with "OK"
>> end if
>>
>
> Now for the player object? Do you have any scripts / appleScripts
> for figuring out whether the fileType of a file is supported by
> QuickTime? I am getting rather pleasant / unpleasant surprises here
> - what is being displayed for pdf's and text files?
>
> Work in progress....
For images and player objects you can check the result() after
setting the fileName of the object. If it isn't empty then there was
an error.
--
Trevor DeVore
Blue Mango Multimedia
trevor at mangomultimedia.com
More information about the use-livecode
mailing list