A cross-platform answer file?

Doug Lerner doug at webcrossing.com
Mon Jan 26 08:04:51 EST 2004


On 1/26/04 7:39 PM, "Klaus Major" <klaus at major-k.de> wrote:

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

I was thinking I might have to do that. Thanks.

I wonder why Rev can't allow extension-like filters for OS X though...

doug



More information about the use-livecode mailing list