Skip to content

Instantly share code, notes, and snippets.

@mygeekdaddy
mygeekdaddy / Outlook_to_OmniFocus
Created April 13, 2022 18:30
Applescript to copy currently selected email as a new task in OmniFocus. (Needs "old" view in Outlook to work)
(*
======================================
// SCRIPT HISTORY
======================================
Original Script from:
Veritrope.com
Outlook 2011 to OmniFocus
VERSION 1.1
<?xml version="1.0" encoding="UTF-8"?>
<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.23" id="1">
<property name="author">Jason Verly</property>
<property name="comments">Copyright 2022 - Jason Verly&#13;
&#13;
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:&#13;
&#13;
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.&#13;
&#13;
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
@mygeekdaddy
mygeekdaddy / miss_pm_detail.xml
Created July 24, 2022 16:00
Missed PM Error Report
<?xml version="1.0" encoding="UTF-8"?>
<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.23" id="1">
<property name="author">Jason Very</property>
<property name="comments">Copyright 2022 - Jason Verly&#13;
&#13;
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:&#13;
&#13;
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.&#13;
&#13;
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
@mygeekdaddy
mygeekdaddy / Markdown Conversion.py
Created April 8, 2014 17:47
Markdown Conversion
# Markdown Conversion
#
# This script demonstrates how you can convert Markdown documents
# to HTML and view the results in the built-in browser.
import os, tempfile, codecs
import console, clipboard, webbrowser
from markdown2 import markdown
DEMO = '''
@mygeekdaddy
mygeekdaddy / OmniFocus_Due_List_R2.scpt
Last active October 23, 2021 11:54
Generate MD file for tasks due within +/- 7d of current date (Rev 2)
(*
File: OmniFocus_Due_List.scpt
Revision: 1.1
Revised: 2019-02-10
Summary: Create taskpaper list of tasks due +/- 7d from current date.
-----------------------------------------------------------
Script based on Justin Lancy (@veritrope) from Veritrope.com
http://veritrope.com/code/write-todays-completed-tasks-in-omnifocus-to-a-text-file
@mygeekdaddy
mygeekdaddy / OmniFocus_due_list_v4.14.scpt
Created February 7, 2019 14:34
Applescript to create .MD file of active OmniFocus tasks
(*
File: OmniFocus_Due_List.scpt
-------------------------------------------------------------------------------------------------
Revision: 4.14
Revised: 2019-02-07
Summary: Create .md file for list of tasks due and deferred +/- 7d from current date.
-------------------------------------------------------------------------------------------------
Script based on Justin Lancy (@veritrope) from Veritrope.com
http://veritrope.com/code/write-todays-completed-tasks-in-omnifocus-to-a-text-file
-------------------------------------------------------------------------------------------------
@mygeekdaddy
mygeekdaddy / OmniFocus_Due_List.scpt
Created July 3, 2015 21:22
Generate MD file for tasks due within +/- 7d of current date
(*
File: OmniFocus_Due_List.scpt
Revision: 1.0
Revised: 2015-07-01
Summary: Create taskpaper list of tasks due +/- 7d from current date.
-----------------------------------------------------------
Script based on Justin Lancy (@veritrope) from Veritrope.com
@mygeekdaddy
mygeekdaddy / drafts_nvalt_import.js
Created May 6, 2021 01:25
Drafts action to import .MD files and apply tag
// Based on original script from @agiletortoise on Drafts Forum
// https://forums.getdrafts.com/t/bulk-import-text-files/2852/8
let fm = FileManager.createCloud();
let path = "/Temp";
let files = fm.listContents(path);
for (let f of files) {
// get file name from end of path
let fileName = f.split("/").pop();
@mygeekdaddy
mygeekdaddy / OmniFocus_Overdue_Summary.scpt
Created August 1, 2019 20:27
Applescript to create .MD file of OmniFocus tasks that are due to be completed.
(*
File: OmniFocus_Overdue_Summary.scpt
-------------------------------------------------------------------------------------------------
Revision: 1.03
Revised: 2019-08-01
Summary: Create .md file for list of tasks due and deferred +/- 7d from current date.
-------------------------------------------------------------------------------------------------
Script based on Justin Lancy (@veritrope) from Veritrope.com
http://veritrope.com/code/write-todays-completed-tasks-in-omnifocus-to-a-text-file
-------------------------------------------------------------------------------------------------
@mygeekdaddy
mygeekdaddy / weather.py
Created March 19, 2014 02:23
Python script to scrape webpage for weather widget area
#!/usr/bin/env python
# use selenium to take webpage screen shot based on stackoverflow from Corey Goldberg
# http://stackoverflow.com/questions/3422262/take-a-screenshot-with-selenium-webdriver/6282203#6282203
# http://stackoverflow.com/questions/3422262/take-a-screenshot-with-selenium-webdriver
from selenium import webdriver
from PIL import Image
import PIL.ImageOps
import time