Skip to content

Instantly share code, notes, and snippets.

Review past week

  • Review calendar events from the past week: Do you need to follow-up with anyone? Are there action items from any of those events you need to get done?
  • Review your weekly or monthly goals: Did you achieve any goals last week? Did you move forward on longer-term goals? Do you need to adjust your process this week?
  • Reflect on the past week: Did the week feel successful as a whole? Could it have been better? What were the good and bad parts?

Prepare for upcoming week

  • Review calendar events for the week ahead: Do you need to prepare notes or research for any events? Do you need to confirm times and places?
  • Review monthly and quarterly goals: Is there anything you can do this week to move towards your goals?
@EmilioMoreno
EmilioMoreno / import_from_Airmail.scpt
Created August 8, 2017 18:15
Script to import mail and attachments from Airmail into Devonthink (as html) while keeping the references between them.
(*
Applescript to import an email with attachments from Airmail3 into Devonthink
Based on the scripts from Kyle Eggleton: http://eggleton.co.nz/geekposts/2017-02-12-Sending-email-from-AirMail-to-DevonThink/
This script combines the two scrips from Kyle Eggleton into a single one with the following aditions:
It imports the e-mail and all the attachments in one script
The mail is imported as html format (instead of eml). This helps to preserve the original look; importing as eml usually break complex html designs.
The record with the e-mail includes links to the different attachments, with its own name each.
The attachments are created as standalone records modifying the creation time of the record to the current date, instead of document creation date (this helps when sorting by date)
The attachments are created with the reference url of the Devonthink imported mail, so when you look at an attachment, you know which is the record that references it.
@iandol
iandol / BEtoOPML.scpt
Last active May 13, 2019 14:42
Bookends to OPML Exporter — Applescript by Dave83 with some further tweaks; see https://www.sonnysoftware.com/phpBB3/viewtopic.php?f=6&t=3882
#!/usr/bin/osascript
--Script to Export Bookends Notes to OPML file v1.18
--Written by Dave Glogowski (modified by iandol)
--07 August 2017
--
--This script converts Bookends references and associated notes into an OPML structured file which can then be imported into Scrivener's research folder.
--Each reference is a top level card which contains the Title, Author, Date, Type, Publisher, Abstract, and Bookends citation key
--If there are notes associated with a reference, each note creates its own subordinate note card with the Page number (if any), note header, quotes,
--comments, and keywords (tags). This allows you to individually review each comment and change its status (label) within Scrivener.
--
@jbpyn
jbpyn / pptx2pdf.scpt
Created July 26, 2017 23:34
pptx2pdf
on run {input, parameters}
set theOutput to {}
tell application "Microsoft PowerPoint" -- work on version 15.15 or newer
launch
set theDial to start up dialog
set start up dialog to false
repeat with i in input
open i
set pdfPath to my makeNewPath(i)
save active presentation in pdfPath as save as PDF -- save in same folder
@Phuket2
Phuket2 / notation.py
Created July 23, 2017 10:18
notation.py
'''
****** WRENCH ITEM ******
create notes for the current source file in the Pythonisita Editor
This file should be added to the wrench menu, and will be run on the active editor tab
The idea is simple. just sometimes you want to make notes as you working on a file. This
script just automates creating a sub dir to save a notes file as well as file by the
same name, but different ext. The ext can be changed below.
A dir will be created in the directory of the source file if one does not exit,
@n8henrie
n8henrie / whois.py
Last active April 2, 2020 07:18
Python transliteration of whois tool, taken from http://code.activestate.com/recipes/577364-whois-client/
"""
Whois client for python
https://gist.github.com/n8henrie/dc55b8fb366710003b5d3c557dfc4469
transliteration of:
http://www.opensource.apple.com/source/adv_cmds/adv_cmds-138.1/whois/whois.c
The MIT License (MIT)
def main():
path_to_source = "input.txt"
output_directory = "output/"
with open(path_to_source, 'r') as source:
lines = source.readlines()
for i, line in enumerate(lines):
with open("{}file_{}.txt".format(output_directory, i), 'w+') as output:
output.write(line)
@suderman
suderman / Edit in Drafts.md
Last active May 13, 2020 16:53
Edit DEVONthink text in Drafts (using Pythonista)

Edit DEVONthink text in Drafts (using Pythonista)

Screenshots:

Open these Drafts Actions URLs in iOS

Metadata IN

@mitcdh
mitcdh / Pinboard (archive).applescript
Last active April 26, 2019 14:26
Pinboard archive script for Devonthink Pro that archives bookmarks as web documents rather than just links
-- Import Pinboard bookmarks
-- Created by Christian Grunenberg on Mon Jan 23 2006.
-- Modified by Rafael Bugajewski to support Pinboard instead of Delicious on Sun Dec 19 2010.
-- Modified by Andreas Zeitler on Sun Mar 03 2011 to display user feedback when finished
-- Modified by Mitchell Hewes on 2017-04-03 to archive bookmarks as PDF documents
-- Copyright (c) 2006-2014. All rights reserved.
-- If the properties pUser and pPassword are undefined then a dialog pops up asking for these properties
property pUser : ""
property pPassword : ""
@iandol
iandol / bookends_to_bibtex.scpt
Last active February 24, 2019 05:48 — forked from naupaka/bookends_to_bibtex.scpt
Applescript to export selected groups in the Bookends bibliography management software to bibtex files. This has been modified to write to file for batches of references which stops Bookends crashes. Also I've added a script (fixCase.rb) to enforce the case of keywords using {}. These should both be placed on the path, then called using: `booken…
#!/usr/bin/osascript
(*
Script written by Naupaka Zimmerman
March 17, 2017
MIT License
Copyright (c) 2017 Naupaka Zimmerman