Skip to content

Instantly share code, notes, and snippets.

@tototoshi
Created May 27, 2014 02:55
Show Gist options
  • Save tototoshi/1ed244bacff84518fbd1 to your computer and use it in GitHub Desktop.
Save tototoshi/1ed244bacff84518fbd1 to your computer and use it in GitHub Desktop.
OS X での通知
import subprocess
script = 'display notification "Finished" with title "Job Finished" sound name "Tritone"'
p = subprocess.Popen(["osascript"], stdin=subprocess.PIPE)
p.stdin.write(script)
p.stdin.close()
p.wait()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment