This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Airmail 2" | |
set theMessage to selected message | |
tell theMessage | |
set theContent to htmlContent | |
set theSubject to subject | |
end tell | |
tell application "OmniFocus" | |
tell quick entry | |
set theRTFMessage to do shell script "echo " & quoted form of theContent & "|/usr/bin/textutil " & " -convert txt -stdin -stdout -format html" | |
make new inbox task with properties {name:theSubject, note:theRTFMessage} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto | |
import boto.s3.connection | |
access_key = '' | |
secret_key = '' | |
conn = boto.connect_s3( | |
aws_access_key_id = access_key, | |
aws_secret_access_key = secret_key, | |
#is_secure=False, # uncomment if you are not using ssl | |
calling_format = boto.s3.connection.OrdinaryCallingFormat(), |