[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [K12OSN] OpenOffice Default Filetypes



Brent wrote:
I was looking back through the archives and I saw the post that Eric made about a script to set the default file types to MS formats. Unfortunately I cannot find a mime converter right now to decode what is in the archives. Does anyone have the script or know of a quick way to get it from the archives?

Brent

Here's the file Eric sent before.


--
Chris Hobbs       Silver Valley Unified School District
Head geek:              Technology Services Coordinator
webmaster:   http://www.silvervalley.k12.ca.us/~chobbs/
postmaster:               chobbs silvervalley k12 ca us
#!/bin/sh

# this script changes the default formats to .doc/.xls/.ppt rather than the
# native OpenOffice.org formats. Yes, that's ugly - but it makes a huge
# difference in the integration of OOo into MS dominate environments.

FILE="/usr/lib/openoffice/share/config/registry/instance/org/openoffice/Office/TypeDetection.xml"

[ -f $FILE ] || exit

perl -i.ltsp -p -e "
	s/5,calc_MS_Excel_97,com.sun.star.sheet.SpreadsheetDocument,,3,,0,,/5,calc_MS_Excel_97,com.sun.star.sheet.SpreadsheetDocument,,259,,0,,/;
	s/1,calc_StarOffice_XML_Calc,com.sun.star.sheet.SpreadsheetDocument,,295,,6200,,/1,calc_StarOffice_XML_Calc,com.sun.star.sheet.SpreadsheetDocument,,39,,6200,,/;
	s/3,impress_MS_PowerPoint_97,com.sun.star.presentation.PresentationDocument,,67,emp,0,,/3,impress_MS_PowerPoint_97,com.sun.star.presentation.PresentationDocument,,323,emp,0,,/;
	s/3,writer_MS_Word_97,com.sun.star.text.TextDocument,,67,CWW8,0,,/3,writer_MS_Word_97,com.sun.star.text.TextDocument,,323,CWW8,0,,/;
	s/1,writer_StarOffice_XML_Writer,com.sun.star.text.TextDocument,,268435751,CXML,6200,,/1,writer_StarOffice_XML_Writer,com.sun.star.text.TextDocument,,268435495,CXML,6200,,/; " $FILE


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]