Skip to content

Instantly share code, notes, and snippets.

@mygeekdaddy
mygeekdaddy / ISO_date.js
Last active June 22, 2024 14:53
Drafts app script to allow insert of current date in ISO 8601 format.
// See online documentation for examples
// https://docs.getdrafts.com/docs/actions/scripting
// Add keyboard shortcut Ctrl-Opt-D to insert date in current cursor location
var today = new Date();
var year = today.getFullYear();
var month = today.getMonth() + 1;
// need to +1 month since Jan = 00
var date = today.getDate();
<?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 / 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
@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 / 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
-------------------------------------------------------------------------------------------------
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
# The MIT License (MIT)
#
# Copyright 2015 Adam Pritchard
#
# 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:
@mygeekdaddy
mygeekdaddy / OmniFocus_Ad_Hoc.scpt
Created September 5, 2015 21:12
Applescript to create a new task to log ad hoc request to document task for any follow up during weekly review.
-- Copyright (c) 2015 Jason Verly
-- Original script by Dan Byler (bylr.net)
-- 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
@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