提取元数据
使用 sketchtool
获取 Sketch 文档的元数据。这包括用于保存文件 Sketch 版本、文档格式版本以及 Sketch 文档的页面和画板的信息。
sketchtool metadata /path/to/document.sketch
输出
JSON 数据输出与 文件包 的原始元数据相同。
{
"commit": "399b83655ed261b257875cf8e762efa1a649509e",
"pagesAndArtboards": {
"9C1FA15B-CBEB-4448-ABFF-628D7FE1A537": {
"name": "Page 1",
"artboards": {}
}
},
"version": 118,
"fonts": [],
"compatibilityVersion": 99,
"app": "com.bohemiancoding.sketch3",
"autosaved": 0,
"variant": "NONAPPSTORE",
"created": {
"commit": "399b83655ed261b257875cf8e762efa1a649509e",
"appVersion": "54.1",
"build": 76490,
"app": "com.bohemiancoding.sketch3",
"compatibilityVersion": 99,
"version": 118,
"variant": "NONAPPSTORE"
},
"saveHistory": ["NONAPPSTORE.76490"],
"appVersion": "54.1",
"build": 76490
}