Popular recipes tagged "win32com"http://code.activestate.com/recipes/tags/win32com/popular/2014-03-31T18:39:16-07:00ActiveState Code RecipesConvert doc and docx files to pdf (Python)
2014-03-31T18:39:16-07:00Fabian Mayerhttp://code.activestate.com/recipes/users/4189629/http://code.activestate.com/recipes/578858-convert-doc-and-docx-files-to-pdf/
<p style="color: grey">
Python
recipe 578858
by <a href="/recipes/users/4189629/">Fabian Mayer</a>
(<a href="/recipes/tags/doc/">doc</a>, <a href="/recipes/tags/pdf/">pdf</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/win32com/">win32com</a>).
Revision 2.
</p>
<p>The Script converts all doc and docx files in a specified folder to pdf files. It checks whether the provided absolute path does actually exist and whether the specified folder contains any doc and docx files. It does not travers the directory recursively. The script is not portable and runs only a Windows machine. Based on the experience I made, I recommend closing MS Word before running the script.</p>
Convert Audio CD track in iTunes with Python (Python)
2011-10-12T05:29:30-07:00Kai Xiahttp://code.activestate.com/recipes/users/4168327/http://code.activestate.com/recipes/577904-convert-audio-cd-track-in-itunes-with-python/
<p style="color: grey">
Python
recipe 577904
by <a href="/recipes/users/4168327/">Kai Xia</a>
(<a href="/recipes/tags/itunes/">itunes</a>, <a href="/recipes/tags/win32com/">win32com</a>).
</p>
<p>This script would do convert tracks from an audio cd into Apple lossless music using iTunes.</p>
<p>When we have a bad cd rom or a bad disk, conversion would usually fail and iTunes would not complain about it. I usually have to check every converted track manually. This script would save the pain: it would check every converted track, if the duration of the converted track is less than the original track, the script would retry the conversion.</p>
<p>This script is inspired by <a href="http://code.activestate.com/recipes/users/4010550/">Fabien C.</a> 's <a href="http://code.activestate.com/recipes/498241/">Recipe 498241</a>.</p>
Run screensaver from Python (Python)
2009-07-03T10:30:58-07:00Jordan Thorntonhttp://code.activestate.com/recipes/users/4170973/http://code.activestate.com/recipes/576828-run-screensaver-from-python/
<p style="color: grey">
Python
recipe 576828
by <a href="/recipes/users/4170973/">Jordan Thornton</a>
(<a href="/recipes/tags/run/">run</a>, <a href="/recipes/tags/saver/">saver</a>, <a href="/recipes/tags/screen/">screen</a>, <a href="/recipes/tags/screensaver/">screensaver</a>, <a href="/recipes/tags/win32/">win32</a>, <a href="/recipes/tags/win32com/">win32com</a>, <a href="/recipes/tags/win32com_client/">win32com_client</a>, <a href="/recipes/tags/windows/">windows</a>).
</p>
<p>Simple script that will allow you to locate and run the set screensaver from python, if available.</p>