APIs missing: Document Name
matteogratton opened this issue · 0 comments
matteogratton commented
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", "");
}