A cross-platform answer file?
Klaus Major
klaus at major-k.de
Sat Jan 24 10:07:30 EST 2004
Hi Doug
> In the docs, the example of an answer file for web graphics is:
>
> answer file myPrompt with filter "Web Graphics,*.jpg;*.gif;*.png"
> But... this doesn't work for OS X, which seems to require a
> concatenation of
> 4-character Mac types.
>
> What are the types in this case? JPEGGIFFPING?
>
> 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
Hope that helps...
> Thanks,
>
> doug
Regards
Klaus Major
klaus at major-k.de
www.major-k.de
More information about the use-livecode
mailing list