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"
_______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG