вторник, 24 мая 2011 г.

Convert folder of docx/pptx to folder of doc/ppt

You're need:

  • linux
  • bash
  • openoffice/libreoffice
  • python
  • hands

soffice -headless -nofirststartwizard -accept="socket,host=localhost,port=8100;urp;StarOffice.Service"
sleep 1
test -d 2003||mkdir 2003
find -type f -name "*.docx" -exec python DocumentConverter.py {} {}.doc \;
find -type f -name "*.pptx" -exec python DocumentConverter.py {} {}.ppt \;
mv *.ppt *.doc 2003/
killall soffice.bin

DocumentConverter.py is avaible here.

How to use it:

  1. Create some folder here you will put your docx/pptx
  2. Put here DocumentConverter.py and this script
  3. Put here some docx/pptx files
  4. Run this script
  5. Go to folder 2003
  6. Get your doc/ppt
  7. ???
  8. PROFIT!
Also, to clean this folder from temp doc,docx,ppt,pptx files you can use this script:

find -name "*.doc" -exec rm -f {} \;
find -name "*.docx" -exec rm -f {} \;

среда, 18 мая 2011 г.

Debian

Get it:
p7zip unrar geany pidgin thunderbird chromium-browser gimp tilda

Purge it!
empathy empathy-common nautilus-sendto-empathy evolution evolution-common evolution-couchdb evolution-exchange gwibber gwibber-service libgwibber0 tomboy