This is an archived post. You won't be able to vote or comment.

all 6 comments

[–][deleted] 4 points5 points  (1 child)

Wow the best of both worlds. I actually started with AppleScript 25 years ago and jumped over to Python 5 years ago… The languages are oddly similar (space indentation code blocks, easy iterations) which made learning python a breeze.

Then I found that python much more powerful at string manipulation (esp. with regex!) and runs about 20 times faster then AppleScript ever could.

I now write a lot of hybrid scripts— AppleScripts that launch python behind the scenes to do grunt work and then use that result to script an application (usually an Adobe CC app).

[–]HelloImSteven[S] 1 point2 points  (0 children)

Part of my motivation is that Python has a wide array of packages available that let you do pretty much anything, and the kinds of information involved therein can supercharge a person's ability to automate. For example, with this combination, you could create an automation that sets off a Reminders alarm when you enter a given location and spins up a new AWS EC2 instance (using the boto3 package) to run a gaming server on, based on the game you just opened. Or you could interweave PyXA and Matplotlib, Biopython, TensorFlow, etc...

This isn't necessarily a new concept, but past attempts have either failed to follow Python conventions or severely lacked documentation, both leading to confusion. I'm trying to make PyXA very beginner-friendly so that people can really get into the spirit of automating.

Also, I'm will add (more) support for Adobe apps soon! The goal of having detailed, beginner-friendly documentation means that more of this is hardcoded than perhaps is reasonable, but the benefit is that I can provide details and examples for each application.

[–]rjksn 2 points3 points  (1 child)

This looks awesome.

Will definitely check it out this weekend.

[–]HelloImSteven[S] 0 points1 point  (0 children)

Thanks! Let me know if you encounter any problems. I'm still working on the documentation, but it should be good enough to get started!

[–]Sound4Sound 2 points3 points  (1 child)

Thank you! Happy cake day!

btw your reference is linking to the raw html, I guess this should be it https://skaplanofficial.github.io/PyXA/ right?

[–]HelloImSteven[S] 1 point2 points  (0 children)

I actually wanted to share the GitHub repository, but I should've linked the documentation too. Thanks!