Skip to content

Instantly share code, notes, and snippets.

View mathieureguer's full-sized avatar

Mathieu Réguer mathieureguer

View GitHub Profile
@mathieureguer
mathieureguer / takeScreenshotAndSaveIt.py
Last active June 15, 2017 20:42 — forked from typemytype/takeScreenshotAndSaveIt.py.py
take screenshot and save it
import Quartz
import AppKit
import os.path
from mojo.UI import CurrentSpaceCenterWindow
# get a path for a png file next to the ufo
path_base = os.path.splitext(CurrentFont().path)[0]
path = path_base + ".png"