{"id":2773,"date":"2017-01-25T11:49:07","date_gmt":"2017-01-25T11:49:07","guid":{"rendered":"https:\/\/www.mjtnet.com\/blog\/?p=2773"},"modified":"2017-01-25T11:49:07","modified_gmt":"2017-01-25T11:49:07","slug":"templates-and-default-templates","status":"publish","type":"post","link":"https:\/\/www.mjtnet.com\/blog\/2017\/01\/25\/templates-and-default-templates\/","title":{"rendered":"Templates and Default Templates"},"content":{"rendered":"<p>Did you know you can create <strong>script templates<\/strong> to use when you create new macros in <a href=\"http:\/\/www.mjtnet.com\/macro-scheduler.htm\">Macro Scheduler<\/a>?<\/p>\n<p>When you create a new macro you can choose File\/New Macro from Template.  This allows you to browse for a .scp file to use as a template.  There are some pre-built templates in the Templates subfolder of the program folder which by default you will be presented with.  <\/p>\n<p>To create your own templates just create a script as normal or use the standalone editor and export it to a name and folder of your choice.  You can then use it later with the &#8220;<a href=\"https:\/\/www.mjtnet.com\/manual\/index.html?new_macro_from_template.htm\">New Macro from Template<\/a>&#8221; option.<\/p>\n<p>If you&#8217;re always writing the same stuff when you create a new macro &#8211; e.g. maybe you have a standard way of documenting your macros with a code block at the top, you might find <strong>default templates<\/strong> really useful.  You will probably have noticed that &#8220;from the factory&#8221; Macro Scheduler puts some comments at the top of all new scripts.  You can change this or add your own comments\/code by creating a default template.<\/p>\n<p><strong>To create a default template<\/strong> create a script file called default.scp and store it in a Templates subfolder beneath your main macro folder (usually My Documents\\Macro Scheduler 14).  This default template will then be loaded whenever you create a new macro using File\/New Macro.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Did you know you can create script templates to use when you create new macros in Macro Scheduler? When you create a new macro you can choose File\/New Macro from Template. This allows you to browse for a .scp file to use as a template. There are some pre-built templates in the Templates subfolder of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts\/2773"}],"collection":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/comments?post=2773"}],"version-history":[{"count":3,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts\/2773\/revisions"}],"predecessor-version":[{"id":2777,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts\/2773\/revisions\/2777"}],"wp:attachment":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/media?parent=2773"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/categories?post=2773"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/tags?post=2773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}