A cross-platform answer file?

Doug Lerner doug at webcrossing.com
Sat Jan 24 10:39:35 EST 2004


Thanks. Very useful!

doug

On 1/25/04 12:07 AM, "Klaus Major" <klaus at major-k.de> wrote:

> 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
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution



More information about the use-livecode mailing list