:note

mg:note

ちらしのうらがきです

InDesign.jsxの非同期書き出し可能なのはpdfとidml

非同期書き出しができるのはpdfとidmlだけ(CS5だと) #target "indesign-7.0" var doc = app.documents[0]; var fmt; var format = [ 'EPS_TYPE', 'INCOPY', 'INCOPY_CS_DOCUMENT', 'INCOPY_CS2_STORY', 'INCOPY_DOCUMENT', 'INCOPY_MARKUP', 'INDESIGN_INTERCHANGE', 'INDESIGN_MARKUP', 'INDESIGN_SNIPPET', 'INTERACTIVE_PDF', 'JPG', 'PACKAGED_XFL', 'PDF_TYPE', 'PNG_FORMAT', 'RTF', 'SVG', 'SVG_COMPRESSED', 'SWF', 'TAGGED_TEXT', 'TEXT_TYPE', 'XML', 'HTML', 'EPUB', ] var export_file_test = function

require_reloader.gemでLoadErrorになるgem

サーバの再起動無しにgemをリロードする require_reloader つかってみた teohm/require_reloader こういう↓名前空間つきのgemだとエラーになるっぽい # name-space-test_foo/lib/name/space/test_foo.rb # localgem require "name/space/test_foo/version" module Name module Space module TestFoo # Your code goes

tables.everyItem()とcells.everyItem()

everyItem() でのコンテンツのとれ方メモ #include "underscore.js" var doc = app.documents.add(); var tf = doc.textFrames.add({geometricBounds:[0,0,'210mm','297mm']}) var tbl1 = tf.parentStory.tables.add(); var tbl2 = tf.parentStory.tables.add(); _.each(tbl1.cells, function (c) { c.contents = "1-" + c.name; }); _.each(tbl2.cells, function (c) { c.contents = "2-" + c.name; }); ; tf_ev = doc.textFrames.everyItem(); $.writeln(tf_ev.contents.toSource()); table_ev = doc.textFrames.everyItem().tables.everyItem(); $.writeln(table_ev.contents.toSource()); cell_ev = doc.textFrames.everyItem().tables.everyItem().cells.everyItem(); $.writeln(cell_ev.contents.toSource()); // ["\x16\x16"] // [ //

Stringerでlazy_fetchが効かない

swanson/stringer の scheduler でまわしてる rake lazy_fetch が機能してないっぽいのをしらべた % heroku run rake lazy_fetch --trace Running `rake lazy_fetch --trace` attached to terminal... up, run.7914 ** Building /js/application.js... ** Building /css/application.css... ** Invoke lazy_fetch (first_time) ** Execute lazy_fetch rake aborted! bad URI(is not URI?): 9:http://xxxxxxxx.herokuapp.com/ /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/uri/common.rb:176:in `split' /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/uri/common.rb:211:in `parse' /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/uri/common.rb:747:in `parse' /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/uri/common.rb:996:in `URI'

back to top