• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Best way to script Excel 2016 from Python
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Best way to script Excel 2016 from Python


  • Subject: Best way to script Excel 2016 from Python
  • From: Felix Zumstein <email@hidden>
  • Date: Wed, 25 Mar 2015 11:40:32 +0100

Office 2016 stopped working with the Python package appscript, see thread "New Office for Mac Beta and Applescript". Is PyObjC in connection with py-applescript the best way to deal with the situation going forward? Or are there any other options (that also work with MacOS < 10.10)?

With Office 2016, ASTranslate transforms this:

tell application "Microsoft Excel"
    set value of range ("A1") to 5
end tell

into this:

app(u'Microsoft Excel').AS_newreference(app.elements('X117').byname(u'A1').property('DPVu')).set(5)

but when I use this, it returns the following error:
AttributeError: Unknown property, element or command: 'elements'

thanks,
Felix
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: Excel: Append to Range
  • Next by Date: Re: Algorithms in Applescript
  • Previous by thread: Re: Excel: Append to Range
  • Next by thread: Re: Best way to script Excel 2016 from Python
  • Index(es):
    • Date
    • Thread