{"id":131,"date":"2005-08-22T23:05:04","date_gmt":"2005-08-22T22:05:04","guid":{"rendered":"http:\/\/relivethefuture.com\/choronzon\/?p=2"},"modified":"2005-08-22T23:05:04","modified_gmt":"2005-08-22T22:05:04","slug":"automated-swf-publishing","status":"publish","type":"post","link":"https:\/\/relivethefuture.com\/choronzon\/automated-swf-publishing\/","title":{"rendered":"Automated Swf Publishing"},"content":{"rendered":"<p>Today i was faced with the pleasant task of publishing over 100 .fla&#8217;s into swfs. Not something i would ever do manually if i could avoid it.<\/p>\n<p>Handily i remember reading <a href=\"http:\/\/www.gskinner.com\/blog\/archives\/2004\/08\/jsfl_fla_batch.html\">this<\/a> from grant skinner just the other day which is a great start, but im not going to hand write the compile schema (aka list of files to be published). In my case there arent any special deployment requirements, i can just stick the output files all in 1 directory. (Although if the jsfl file api thingy had a directory selector and a way to iterate through a directory contents then i wouldnt need any of this&#8230;)<\/p>\n<p>Someone wrote a nice comment about using the dir command and a .bat file on windoze to generate the schema, handy but pretty dirty. So instead of that i knocked up a quick ruby script to generate a simple schema file, which is probably a good start if you need a more interesting layout, at least you dont have to write it all by hand.<\/p>\n<p>It was also a good excuse to actually write some ruby code rather than just read about it. So here it is &#8216;my first ruby program&#8217;<\/p>\n<p>enhancements and modifications are welcome.<\/p>\n<p><a href=\"http:\/\/relivethefuture.com\/code\/ruby\/generateCompileSchema.rb\">the code is here<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today i was faced with the pleasant task of publishing over 100 .fla&#8217;s into swfs. Not something i would ever do manually if i could avoid it.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,4],"tags":[28,31,87],"class_list":["post-131","post","type-post","status-publish","format-standard","hentry","category-development","category-flash","tag-as2","tag-automated-publishing","tag-swf"],"_links":{"self":[{"href":"https:\/\/relivethefuture.com\/choronzon\/wp-json\/wp\/v2\/posts\/131","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/relivethefuture.com\/choronzon\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/relivethefuture.com\/choronzon\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/relivethefuture.com\/choronzon\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/relivethefuture.com\/choronzon\/wp-json\/wp\/v2\/comments?post=131"}],"version-history":[{"count":0,"href":"https:\/\/relivethefuture.com\/choronzon\/wp-json\/wp\/v2\/posts\/131\/revisions"}],"wp:attachment":[{"href":"https:\/\/relivethefuture.com\/choronzon\/wp-json\/wp\/v2\/media?parent=131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/relivethefuture.com\/choronzon\/wp-json\/wp\/v2\/categories?post=131"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/relivethefuture.com\/choronzon\/wp-json\/wp\/v2\/tags?post=131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}