Python Photoshop saving with LZW compression

Hello Everyone

I am trying to save a Tiff file with LZW compression. I am fairly new to this and I was reading up on the API

So far I got this

        
tifSaveOptions = win32com.client.Dispatch('Photoshop.TiffSaveOptions')        
tifSaveOptions.AlphaChannels = False
tifSaveOptions.Layers = False

self.active_doc.SaveAs(path,tifSaveOptions,True)

However I am to figure how do I pass the arguement for imageCompression when the arguement is TIFFEncoding type

On Javascript version it is simply the following

params.imageCompression = TIFFEncoding.TIFFLZW; 

http://www.ps-scripts.com/bb/viewtopic.php?f=2&t=388

Offcourse Python would not excecute that as it would think that it is aa variable.

Thank you

tifSaveOptions.imageCompression = 2

The value is an Enum value. Check Photoshop VBScript Ref.pdf that comes with photoshop for other options.