Sending this to the list were it was meant to go in the first place.

-- 
Regards,

Graham Bloice

--- Begin Message ---
Vernon Cole wrote:
> <SNIP>
> --
> Vernon Cole
>
> On Tue, Jan 27, 2009 at 9:55 AM, Charlie Clark <char...@begeistert.org> wrote:
>   
>> Hiya,
>>
>> I'm pretty new to COM but fairly used to Python. Still got most things to 
>> work just struggling a little with reading a constant.
>>
>> I'm currently scripting Adobe InDesign (CS4) where I create a document, 
>> export a PDF and close it withouth saving. All the documentation I've come 
>> across refers to a SaveOptions constant (yes or no) that I presumably can 
>> extract from InDesign somehow. While I have managed to come across the right 
>> value for this constant:
>>
>> http://www.indesignscriptingreference.com/CS3/JavaScript/SaveOptions-enum.htm
>>
>> it's also pretty clear to me that this might break easily and isn't quite 
>> the correct way of doing this. I've read about using introspection to 
>> generate the constants in win32com.client but haven't been able to get this 
>> to work. Is this a once only procedure or is it possible at run time?
>>
>> Thanks in advance for any pointers!
>>
>>     
>
Or, use the built in win32com support for constants, e.g.
win32com.client.constants.myConstantName.  Note I think this only works
if you've run MakePy over the type library for the object.

Search the pythonwin help for the Quick Start to Client side COM.

-- 
Regards,

Graham Bloice


--- End Message ---
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to