I haven't looked at the code myself but I imagine it's using file header
data to determine what it is. Similar in general concept to UNIX file's
magic number tests.

That might be wrong but it's an educated guess :).

- Brian



On 3/23/05 3:35 PM, "Jaime Chang" <[EMAIL PROTECTED]> wrote:

> Hi everybody,
> 
> How does OpenOffice know what program to load for a specific microsoft
> office document?
> 
> I know it's not using the file extensions because I changed some of the
> excel documents extensions to word extensions and OpenOffice was still
> able to load them with the right application.
> 
> I don't think is using the unix "file" command since it always returns
> application/msword mime type for all microsoft office documents.
> 
> Can anybody please give me some explanation of how OpenOffice might be
> handling
> the above scenario.
> 
> Thanks in advance,
> 
> Jimmy
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to