Skip to content

Instantly share code, notes, and snippets.

@jeredb
jeredb / Save MarsEdit Document to Text File (YYYYMMDD-[title]-[postID])
Last active June 14, 2026 20:29
An adapted Applescript to export markdowns from
-- Original details and explanation:
-- https://daringfireball.net/2026/03/applescript_save_marsedit_document_to_text_file
-- Modification details:
-- https://jeredb.com/posts/exporting-drafts-from-microblog-via-marsedit-thanks-to-john-gruber
tell application "MarsEdit"
set _blog to blog 1
set _posts to every post of _blog
set _output_posix to "/Users/jeredb/Documents/Blog/"
tell application "Safari" to set recipeurl to URL of front document
tell application "Safari" to set recipetitle to name 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'")
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
@jeredb
jeredb / Clipper.scpt
Created April 9, 2012 20:52
System wide TaskPaper Clipper
(*
Run as Automator Service and add keyboard shortcut in "Keyboard" preference pane.
*)
on run {input, parameters}
tell application "TaskPaper"
tell front document
tell project named "Inbox"
@jeredb
jeredb / Log to Day One.scpt
Created February 24, 2012 19:26
Based on Brett Terpstra's Log Taskpaper Archives to Day One, except for Omnifocus.
(*
Jered Benoit
jeredb.com
Omnifocus -> Day One Daily Completed Task Log
Based upon [Version 1.0] [1] of [OmniFocus - Weekly Project Report Generator] [2]
Originally Authored by Chris Brogan and Rob Trew
February 5, 2012
--by Don Southard aka @binaryghost adapted by Ben Brooks aka @benjaminbrooks, adapted by Jered Benoit aka @jeredb - 20113415
-- Variables
-- Email Subject Line
set mailSubject to "Delegated Task from Jered Benoit: "
-- Include "Send to Omnifocus" link
set sendToOmnifocus to true