sketch-measure icon indicating copy to clipboard operation
sketch-measure copied to clipboard

plugin Callable by Command Line? (like or with sketchtool)

Open dimitrieh opened this issue 8 years ago • 10 comments

@utom This is an awesome plugin, congrats on the work already done on this!

I was wondering if we could call this plugin to generate exports from the command line, like www.sketchapp.com/tool/ ?

something like: sketchtool --useplugin sketch-measure:spec-export -o outputfolder/ sketchfile.sketch

or

sketch-measure --spec-export -o outputfolder/ sketchfile.sketch

dimitrieh avatar Aug 26 '16 11:08 dimitrieh

That would be great!

I discussed this idea with the Sketch team and they told me :

that's currently not possible, but it's definitely a good idea, so I've filed a request in our issue tracker and we'll see what we can do : )

kevinbaes avatar Aug 26 '16 12:08 kevinbaes

@SUPK187 thats amazing news ;)

dimitrieh avatar Aug 26 '16 12:08 dimitrieh

@SUPK187 check the current implementation we use at GitLab ;) https://gitlab.com/gitlab-org/gitlab-design#repository-superpowers-

dimitrieh avatar Aug 29 '16 13:08 dimitrieh

@dimitrieh & @utom

We have added a feature to sketchtool that allows it to tell Sketch to run plugins (I should probably document this on a new thread). Try running sketchtool run with SketchTool 43 : )

http://sketchplugins.com/d/87-new-file-format-in-sketch-43/23

😬

kevinbaes avatar Mar 24 '17 07:03 kevinbaes

@kevinbaes very nice!

@utom how would we be able to run this with sketchtool run ? 😄

sketchtool run com.utom.measure commandExport --application=/Applications/Sketch\ Beta.app test.sketch doesn't seem to work

dimitrieh avatar Mar 27 '17 10:03 dimitrieh

@kevinbaes did you figure out how to use this? :)

dimitrieh avatar Apr 13 '17 15:04 dimitrieh

@dimitrieh No... :(

kevinbaes avatar Apr 14 '17 08:04 kevinbaes

A temporary alternative: https://github.com/devsigners/sketch-measure-cli.

creeperyang avatar Aug 08 '17 06:08 creeperyang

greate! we really need this feature

qhxin avatar Aug 31 '19 11:08 qhxin