User:Smallman12q/Scripts/Transperify

The following is a visual basic script for adding transparent backgrounds to molecular projections produced in ChemDraw with SVGs.

The script requires that you have XP (or higher) with VBS installed (this is installed on most Windows machines).

Setup

 * 1) Open notepad
 * 2) Copy and paste the code below into notepad
 * 3) In notepad, select File->Save as and select "All files" at "File Save as Type"
 * 4) Enter the title Transperify.vbs and select save in a directory.

Usage

 * 1) Export image in ChemDraw as SVG
 * 2) Drag-and-drop saved image onto the script's icon.
 * 3) The svg will be automatically converted (virtually instantly)
 * 4) The svg now has a transparent background. Enjoy!

If you have any questions, please ask at my talk page at: User talk:Smallman12q

Code resources

 * http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=9692&lngWId=4
 * http://blogs.technet.com/b/heyscriptingguy/archive/2005/02/08/how-can-i-find-and-replace-text-in-a-text-file.aspx
 * http://www.microsoft.com/downloads/details.aspx?familyid=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en
 * http://msdn.microsoft.com/en-us/library/1cbft50a%28v=VS.85%29.aspx
 * http://my.opera.com/Lee_Harvey/blog/2007/04/21/try-catch-finally-in-vbscript-sure
 * http://msdn.microsoft.com/en-us/library/z2b05k8s%28v=VS.85%29.aspx