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?

Blaz Zupan
  • 306
  • 1
  • 5

1 Answers1

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.

Community
  • 1
  • 1
  • 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. – Blaz Zupan Jul 20 '15 at 06:31