Skip to content

Instantly share code, notes, and snippets.

@tttimur
tttimur / cdf
Last active June 7, 2019 20:08
copy cdf
cdf() {
cd "$(osascript -e 'tell app "Finder" to POSIX path of (insertion location as alias)')";
}
@weiweihuanghuang
weiweihuanghuang / Set Transform Origin to Centre of Selection.py
Last active January 9, 2016 14:50
Set Transform Origin to Centre of Selection
#MenuTitle: Set Transform Origin to Centre of Selection
# -*- coding: utf-8 -*-
__doc__="""
Sets origin point for Rotate tool to the centre of the selection.
"""
import GlyphsApp
Font = Glyphs.font
Doc = Glyphs.currentDocument
selectedLayer = Font.selectedLayers[0]