Notice!
PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities.
Create your free Platform account
to download ActivePython or customize Python with the packages you require and get automatic updates.
Download
ActivePython
INSTALL>
pypm install osascript
How to install osascript
- Download and install ActivePython
- Open Command Prompt
- Type
pypm install osascript
| Python 2.7 | Python 3.2 | Python 3.3 |
---|
Windows (32-bit) | | | |
---|
Windows (64-bit) | | | |
---|
Mac OS X (10.5+) | | | |
---|
Linux (32-bit) | | | |
---|
Linux (64-bit) | | | |
---|
Lastest release
version 0.0.4 on Jan 9th, 2014
Installing
pip install osascript
Usage
from osascript import osascript, sudo
osascript('tell application "iTunes" to play')
print osascript('return {1,2,3}',"h") # osascript flags
>>> 1, 2, 3
sudo("python setup.py install") # GUI if no terminal
osascript(1) OS X Manual
Page