Skip to content

Instantly share code, notes, and snippets.

@uhunkler
uhunkler / sketch-header.jstalk
Created April 13, 2013 10:39
header - JSTalk Sketch
var doc = doc || null,
app = null,
extern = false;
if( doc === null )
{
extern = true;
app = JSTalk.application("Sketch");
// app.activate();
doc = app.orderedDocuments()[0];
var selection = doc.selectedLayers();