Re: [Pythonmac-SIG] Modifying table cell content with python-appscript

2008-11-25 Thread has
On 24 Nov 2008, at 22:46, Sven A. Schmidt wrote: OK. Can you also try the same commands in AppleScript to check if it works there or not. Something like: tell app "System Events" tell process "Hourglass" set value of text field 1 of row 1 of table 1 of scroll area 3 ¬

Re: [Pythonmac-SIG] Modifying table cell content with python-appscript

2008-11-24 Thread has
On 24 Nov 2008, at 22:23, Sven A. Schmidt wrote: Any idea where the 'unnamed customer' is coming from? Is the appscript 'set' command setting the text field's value? Can you post both your working AppleScript and non-working Python script for comparison? Also, if you can run your applicatio

Re: [Pythonmac-SIG] Modifying table cell content with python-appscript

2008-11-24 Thread Sven A. Schmidt
On Nov 24, 2008, at 22:13, has wrote: On 24 Nov 2008, at 09:15, Sven A. Schmidt wrote: Here's what I get: [eris:sas/Hourglass-trunk/Tests] sas% python2.5 hg_test.py ('', u'unnamed customer', False) Any idea where the 'unnamed customer' is coming from? Is the appscript 'set' command settin

Re: [Pythonmac-SIG] Modifying table cell content with python-appscript

2008-11-24 Thread has
On 24 Nov 2008, at 09:15, Sven A. Schmidt wrote: Here's what I get: [eris:sas/Hourglass-trunk/Tests] sas% python2.5 hg_test.py ('', u'unnamed customer', False) Any idea where the 'unnamed customer' is coming from? Is the appscript 'set' command setting the text field's value? Can you post

Re: [Pythonmac-SIG] Modifying table cell content with python-appscript

2008-11-24 Thread Sven A. Schmidt
Ok, I've tried your example: sysevents = app('System Events') hg = sysevents.processes['Hourglass'] ref = hg.windows['Untitled'].splitter_groups[1] \ .scroll_areas[3].tables[1].rows[1].text_fields[1] s = '' ref.value.set(s) t = r

Re: [Pythonmac-SIG] Modifying table cell content with python-appscript

2008-11-22 Thread has
On 22 Nov 2008, at 10:10, Sven A. Schmidt wrote: - If you're on 2.5 or earlier, post the complete appscript code you're using to set the text field's value and the Python value you get when you get it so we can take a look, e.g. something like: ref = app('AppName').windows['Untitled'].sp

Re: [Pythonmac-SIG] Modifying table cell content with python-appscript

2008-11-22 Thread Sven A. Schmidt
has, thanks a lot for your reply! Should work, although hard to say why it isn't without some more detail. A couple pointers: Right, after years of replying to bug reports with "what version are you using" I forget to include version info... I'm using python 2.5 and appscript 0.18.1, both

Re: [Pythonmac-SIG] Modifying table cell content with python-appscript

2008-11-21 Thread has
Sven A. Schmidt wrote: I hope I'm in the correct place with this problem -- I've found this list through a link from the python-appscript page. My problem probably falls between python and AppleScript but I've not been able to find any clues on the web or in this list's archives. Please let

[Pythonmac-SIG] Modifying table cell content with python-appscript

2008-11-21 Thread Sven A . Schmidt
NB: In the process of writing this plea for help I've come up with a workaround. (Don't you love it when you solve your problem while asking about it? :) I'm posting this rather elaborate problem description anyway, because it might help others and because it is after all still a workaround