Skip to content

Instantly share code, notes, and snippets.

Avatar

JMichaelTX JMichaelTX

View GitHub Profile
@JMichaelTX
JMichaelTX / JXA_PersistentProperties.js
Last active Mar 16, 2021 — forked from RobTrew/JXA_PersistentProperties.js
Persistent 'properties' for OS X JavaScript for Applications (JXA) Forked from Rob Trew
View JXA_PersistentProperties.js
(function () {
'use strict';
// OSX JavaScript for Applications lacks the persistent 'properties'
// of AppleScript (in which global variables and properties persist between script runs)
// but we can, of course, serialise to JSON or plist at the end of a script
// parsing it at the start of the next run.
// Here is one approach to persistence between script runs
// using JSON.stringify() and JSON.parse()
View 1 Mods to AppleScript formatICUDate by JMichaelTX.md

MODS BY JMichaelTX on Sat, Feb 27, 2016

AppleScript Handler: on formatDate(pDate, pFormat)

  1. Changed record-style parameters to single-field parameters
  2. Added block to handle date parameter as a string, including International format (YYYY-MM-DD)
  3. Added handler/function: convertIntlDate(pDateStr)
@JMichaelTX
JMichaelTX / Main.css
Last active Aug 29, 2017 — forked from chrisphenry/Main.css
Safari 7 & 9 - Customise Web Inspector font
View Main.css
/*Customise Safari Web Inspector font*/
/*(tested on Safari 7.0.1 on OS X Mavericks)*/
/* Tested on Safari 9.1 (11601.5.17.1) on OSX 10.11.4 as of 2016-05-08 */
/*
JMichaelTX NOTE:
- This process was written for Safari 7 (Mavericks)
- I found it worked fine with Safari 9.1 (11601.5.17.1) on OSX 10.11.4, with just a few simple changes (noted below)
*/