Skip to content

Instantly share code, notes, and snippets.

@robinkaty
robinkaty / mailapp.py
Last active June 12, 2023 23:41
Mailapp command line tool
#!/usr/bin/env Python3
#
# by Nathan Grigg http://nathangrigg.com
#
# Rob Granger
# change line #1 to use /usr/bin/env Python3
# change Popen to use UTF8 to fix the binary pipe errors.
# p = Popen(['/usr/bin/osascript'],stdin=PIPE,stdout=PIPE,encoding='utf-8')