0

I have a Python-based GUI application that uses PyQt. Is there any way to make it scriptable on Mac OSX, such that I can control it through AppleScript?

1 Answer 1

0

Sure. AppleScript can execute shell programs just fine. In this case, you'd want something like:

do shell script "python <yourscript>.py"

Please refer to this question for more information on running shell scripts from within AppleScript.

If this doesn't solve your problem because of some problem with interfacing PyQt, let us know.

Sign up to request clarification or add additional context in comments.

1 Comment

This solves the problem of executed the entire application. My question was rather on writing PyQt app, and then adding information such that I can control every of its aspect by AppleScript. Say, open and close windows, open files, execute functions and so on.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.