Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Run the 'osascript' command from Python.

Example shell command line:
Code:
osascript -e 'tell app "System Events" to display dialog "Explode the penguin now?"'
I assume you know how to open the man page for osascript, how to run subprocesses in Python, etc.
 
Run the 'osascript' command from Python.

Example shell command line:
Code:
osascript -e 'tell app "System Events" to display dialog "Explode the penguin now?"'
I assume you know how to open the man page for osascript, how to run subprocesses in Python, etc.

Thanks, I just tried:
Code:
osascript -e 'display dialog "Hello world"'
It works now with system events, thanks!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.