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
(* | |
Apple Mail to Markdown Formatted Day One Entry | |
!!! IMPORTANT !!! | |
Requires the Day One Command Line Interface. Download and install from here: | |
http://dayoneapp.com/tools/ | |
Adapted from 'Apple Mail -- Text File Exporter w/ Basic Header Info' by Justin Lancy: | |
http://veritrope.com/code/apple-mail-export-to-text-file-w-basic-header-info |
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
(* | |
Apple Mail Rules to FastMail Advanced Sieve Rules | |
Jonathan Poritsky, candlerblog.com | |
November 8, 2013 | |
--- | |
For more information on FastMail server rules (and requisite warnings) read Gabe Weatherhead's piece on transitioning to server-side mail rules: | |
http://www.macdrifter.com/2013/11/server-side-mail-rules.html | |
*) |
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 "Finder" | |
set sel to the selection as text | |
set fPath to quoted form of POSIX path of sel | |
do shell script ("cat " & fPath & " | pbcopy && pbpaste") | |
end tell |
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 "Safari" to set recipetitle to name of front document | |
tell application "Safari" to set recipeurl to URL of front document | |
set ingredients to (do shell script "curl http://recipedistiller.com/recipe/classify/?recipeurl=" & recipeurl & " | textutil -convert txt -stdin -stdout | grep '.' | sed 's/ • DELETE //g' | sed '$d'") | |
set my text item delimiters to "VIEW RECIPE" | |
set ingredients to text item 2 of ingredients | |
set my text item delimiters to "©" | |
set ingredients to text item 1 of ingredients |
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 "Reminders" | |
delete (every reminder whose completed is true) | |
end tell |
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
# Automate MailTags Tagging | |
# by Jonathan Poritsky | |
# http://candlerblog.com | |
# | |
# Instructions for editing inline. | |
tell application "Mail" | |
activate | |
set m to (selection) | |
set s to (extract address from sender of item 1 of m) |
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 "Finder" to set filePath to quoted form of (POSIX path of (the selection as alias)) | |
do shell script "cat " & filePath & " | pbcopy" |
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
@font-face{font-family:'FontAwesome';src:url('http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/fonts/fontawesome-webfont.eot?v=4.2.0');src:url('http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/fonts/fontawesome-webfont.eot?#iefix&v=4.2.0') format('embedded-opentype'),url('http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/fonts/fontawesome-webfont.woff?v=4.2.0') format('woff'),url('http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/fonts/fontawesome-webfont.ttf?v=4.2.0') format('truetype'),url('http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/fonts/fontawesome-webfont.svg?v=4.2.0#fontawesomeregular') format('svg');font-weight:normal;font-style:normal} | |
#tag_cloud{display:none} | |
#timer{display:none;} | |
#logo{margin-left:120px;} | |
#pinboard{width:100%;padding:0 !important;margin:0 !important;background-color:#f9f9f9 !important;} | |
#banner{background:rgb(15,128,255) !important;width:100% !important;min-width:1100px;position:fixed;left:0;padding:15px 0 16px 0 !important;z-index:10;font-family:"Avenir Next Condensed";} | |
# |
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
# Easy Planter | |
# by Jonathan Poritsky http://candlerblog.com | |
# | |
# Run script to walk you through creating new file trees with Brett terpstra's Planter.rb | |
# For more info on Planter see Brett's original post: | |
# http://brettterpstra.com/planter-tree-planting-for-your-filesystem/ | |
# | |
# Note: Script does an mdfind to locate "planter.rb". If you've renamed planter then this will not work. Noted below how to change. | |
tell application "Finder" |
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
{ | |
"cmd": ["dayone new < $file"], | |
"path": "/usr/local/bin/", | |
"shell": "true" | |
} |
NewerOlder