Hi - is there a way of programmatically copying template files from the plugin's resource bundle to ~/Library/Application Support/com.bohemiancoding.sketch3/Templates?
I can open templates from the plugin commands i.e.
var templatePath = context.plugin.urlForResourceNamed("templates/template-1.sketch").path();
but how do I copy them programmatically to ~/Library/Application Support/com.bohemiancoding.sketch3/Templates so they are available from Sketch's File > New From template and the app start up dialog?
Opening the template files does not copy them automatically to Sketch templates folder.
I guess doing it with a plugin command is potentially an option since there is no notifications fired upon plugin installation to automagically copy the template files to Sketch template folder.
How would you attack this problem?