def pause ( ) : if not settings . platformCompatible ( ) : return False ( output , error ) = subprocess . Popen ( [ "osascript" , "-e" , PAUSE ] , stdout = subprocess . PIPE ) . communicate ( )
python how to simulate android operation
Tell iTunes to pause
def pause():
	"""Tell iTunes to pause"""

	if not settings.platformCompatible():
		return False

	(output, error) = subprocess.Popen(["osascript", "-e", PAUSE], stdout=subprocess.PIPE).communicate()