[Pythonmac-SIG] appscript and Office 2011, not working?
Christian Prinoth
christian at prinoth.name
Fri Feb 11 12:22:38 CET 2011
Just upgraded to Office 2011, and it appears appscript is not working
correctly with Excel 2011.
If I do the following:
> app(u'/Applications/Microsoft Office 2011/Microsoft
> Excel').ranges[u'B2'].value()
I get:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/Users/c.prinoth/<ipython console> in <module>()
/Library/Python/2.6/site-packages/appscript-1.0.0-py2.6-macosx-10.6-universal.egg/appscript/reference.pyc
in __getitem__(self, selector)
587 def __getitem__(self, selector):
588 if isinstance(selector, basestring): # by-name
--> 589 return Reference(self.AS_appdata,
self.AS_aemreference.byname(selector))
590 elif isinstance(selector, (GenericReference,
Reference, Test)): # by-test
591 if isinstance(selector, GenericReference):
AttributeError: 'Property' object has no attribute 'byname'
while issuing the corresponding command in Applescript editor works
perfectly:
*
*
*tell* *application* "Microsoft Excel"
*get* value *of* *range* "B2"
--> "seweqwe"
*end tell*
*Result:*
"seweqwe"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20110211/24e17934/attachment.html>
More information about the Pythonmac-SIG
mailing list