[Python-bugs-list] [ python-Bugs-598981 ] Python not handling cText
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 22 Aug 2002 13:44:55 -0700
Bugs item #598981, was opened at 2002-08-22 13:44
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=598981&group_id=5470
Category: Macintosh
Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Submitted By: Robin Siebler (robinsiebler)
Assigned to: Jack Jansen (jackjansen)
Summary: Python not handling cText
Initial Comment:
I have the following AppleScript which I have also converted
to Python:
tell application "CodeWarrior IDE"
activate
open file file1
disassemble file file2
set xText to (get text of document 1)
end tell
I had some difficulty converting the last command into
Python, but the below should work (or so I have been told):
import CodeWarrior, time
cw = CodeWarrior.CodeWarrior(start=1)
time.sleep(5)
cw.activate()
cw.open(file1)
cw.disassemble_file(file2)
time.sleep(5)
xtext = app('CodeWarrior IDE').document[1].text
However, instead of the text that I expect, xtext is equal to
'app('CodeWarrior IDE').document[1].text.all'
Bill Fancher looked at CodeWarrior and said that it is
returning cText which is not being handled by Python.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=598981&group_id=5470