Closed matteogratton closed 1 year ago
The Sketch document name is not available in the current implementation.
The only way to find it is currently via:
var sketch = require("sketch"); var document = sketch.getSelectedDocument(); if (document.path) { documentName = normalizePaths(document.path.split("/").reverse()[0]); documentName = documentName.replace(".sketchcloud", ""); documentName = documentName.replace(".sketch", ""); }
The Sketch document name is not available in the current implementation.
The only way to find it is currently via: