Rewriting an AppleScript in Python and vice-versa


(Eric) #1

I’m learning Python because it is a requirement for scripting Amazon Web Services.
As I’m learning Python, there are a few of my AppleScripts that might be more elegant if written in Python or as a hybrid. I’m not far enough in Python to do it yet, and I’m curious to hear about other’s experiences.

What have you noticed in scripting in Python?
Could you post a script that exists as AppleScript and Python?


(Matt Strange) #2

Ryan Wilcox wrote an article for MacTech about this a few years ago. It’s online at: http://www.mactech.com/articles/mactech/Vol.20/20.11/PythonForAppleScripters/index.html.
Maybe that will be of use to you.


(Eric) #3

Very helpful and interesting. Thank you!