A cross-platform answer file?

Klaus Major klaus at major-k.de
Mon Jan 26 05:39:32 EST 2004


Hi Doug,

>>> ...
>>> How would one make a cross-platform version of this answer file 
>>> prompt?
>>
>> on mouseup
>>  if the platform = "MacOS" then
>>       put "JPEGGIFfPNGf" into filterlist
>>   else  ##for windows, no idea about *nix...
>>        put "*.jpg;*.gif;*.png" into filterlist
>>  end if
>> answer file myPrompt with filter filterlist
>> ## do your stuff here...
>> end mouseup
>
> I notice this only works on OS X with files created on a Mac. Other 
> JPEGs
> and GIFs don't have the write JPEG and GIFf thing set unless you open 
> them
> up first and save them with a Mac app.
>
> Any workaround for that?

Not really, i work around this by letting the user choose ANY file, and 
check and tell
AFTERWARDS if it is not a valid image-file or something...

> doug

Regards

Klaus Major
klaus at major-k.de
www.major-k.de



More information about the use-livecode mailing list