You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see, this code is very similar to the existing python code using win32com.
I think this same approach can be used for almost all of the activties provided by Automagica. For example, the append_text function uses the win32com method document.add_paragraph(text) which has an equivalent in MacOS as can be seen in the AppleScript Scripting Dictionary:
The text was updated successfully, but these errors were encountered:
AlJohri
changed the title
[feature request] add macos compatibiilty for microsoft office activities?
[feature request] add macos compatibiilty for all microsoft office activities
Feb 18, 2020
Would need to investigate what the best way would be to call AppleScript from Python. There's appelscripthttps://pypi.org/project/applescript/ but it's not as integrated as win32com as in not returning Python objects but just stdout/stderr.
Any suggestions are more than welcome on this topic.
As an additional challenge, our development team currently does not have access to Apple hardware and apparently you cannot buy OSX licenses for running it in a VM (legally).
koenvaneijk
changed the title
[feature request] add macos compatibiilty for all microsoft office activities
Add MacOSX compatibiilty for Office-related activities
Apr 3, 2020
I've had some success using AppleScript / JXA (Javascript for Automation) to replicate code using
win32com
on MacOS.I was able to use this approach to solve a very specific use case and create
docx2pdf
: https://github.com/AlJohri/docx2pdf.The actual conversion code looks like:
As you can see, this code is very similar to the existing python code using
win32com
.I think this same approach can be used for almost all of the activties provided by Automagica. For example, the
append_text
function uses the win32com methoddocument.add_paragraph(text)
which has an equivalent in MacOS as can be seen in the AppleScript Scripting Dictionary:The text was updated successfully, but these errors were encountered: