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 = '<string>' ref.value.set(s) t = ref.value() print (s, t, s == t) Here's what I get: [eris:sas/Hourglass-trunk/Tests] sas% python2.5 hg_test.py ('<string>', 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 both your working AppleScript and non-working Python script for comparison? Also, if you can run your application with AEDebug enabled:
The 'unnamed customer' is the original field value, sorry for not mentioning that. It never changes. I don't have an AppleScript, I'm just doing this with appscript.
The AEDebug output is rather long, I'll send you the full output off- list.
Cheers, Sven _______________________________________________ Pythonmac-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/pythonmac-sig
