{"id":1236,"date":"2012-06-22T13:34:54","date_gmt":"2012-06-22T04:34:54","guid":{"rendered":"http:\/\/www.white-room.jp\/blog\/?p=1236"},"modified":"2012-06-22T13:34:54","modified_gmt":"2012-06-22T04:34:54","slug":"indesign-%e8%a7%92%e4%b8%b8%e4%bf%ae%e6%ad%a3","status":"publish","type":"post","link":"https:\/\/www.white-room.jp\/blog\/?p=1236","title":{"rendered":"indesign \u89d2\u4e38\u4fee\u6b63"},"content":{"rendered":"<p>\u30b5\u30a4\u30ba\u5909\u66f4\u6642\u306b\u3081\u3093\u3069\u304f\u3055\u3044\u306e\u3067\u3001\u5909\u66f4\u3057\u3066\u304b\u3089\u3082\u3046\u4e00\u5ea6\u3084\u308c\u3070\u3044\u3044\u3088\u3046\u306b\u5909\u66f4\u3002<\/p>\n<p>\u25a0\u306e\u5916\u5074\u306b\u8ffd\u52a0\u3059\u308b\u65b9\u306f\u5927\u304d\u3055\u304c\u5909\u308f\u308b\u3093\u3067\u653e\u7f6e\u3002\u4f4d\u7f6e\u6c7a\u3081\u304c\u5909\u308f\u3089\u306a\u3044\u5185\u5074\u3067\u4f55\u3068\u304b\u3059\u308b\u30bf\u30a4\u30d7\u3060\u3051\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\ntell application &quot;Adobe InDesign CS5&quot;\r\n\ttell document 1\r\n\t\ttry\r\n\t\t\tset ss to object reference of selection\r\n\t\ton error\r\n\t\t\tdisplay dialog &quot;\u9078\u629e\u3055\u308c\u3066\u3044\u307e\u305b\u3093&quot; buttons {&quot;\u30ad\u30e3\u30f3\u30bb\u30eb&quot;} default button 1\r\n\t\tend try\r\n\t\tset {button returned:btres} to display dialog &quot;\u4e0a\u4e0bor\u5de6\u53f3&quot; buttons {&quot;\u4e0a\u4e0b&quot;, &quot;\u5de6\u53f3&quot;, &quot;\u30ad\u30e3\u30f3\u30bb\u30eb&quot;} default button 3\r\n\t\trepeat with s in ss\r\n\t\t\tconvert shape s given convert to rectangle\r\n\t\t\tset r to rotation angle of s\r\n\t\t\ttell application &quot;Adobe InDesign CS5&quot;\r\n\t\t\t\tset myRotateMatrix_org to make transformation matrix with properties {counterclockwise rotation angle:r}\r\n\t\t\t\tset myRotateMatrix_flat to make transformation matrix with properties {counterclockwise rotation angle:-r}\r\n\t\t\tend tell\r\n\t\t\ttransform s in pasteboard coordinates from center anchor with matrix myRotateMatrix_flat\r\n\t\t\tset {y, x, yy, xx} to geometric bounds of s\r\n\t\t\tset {pr1, pr2, ps} to {{y, x, yy, x + yy - y}, {y, xx - (yy - y), yy, xx}, {y, x + ((yy - y) \/ 2), yy, xx - ((yy - y) \/ 2)}}\r\n\t\t\tif btres = &quot;\u4e0a\u4e0b&quot; then set {pr1, pr2, ps} to {{y, x, y + xx - x, xx}, {yy - (xx - x), x, yy, xx}, {y + ((xx - x) \/ 2), x, yy - ((xx - x) \/ 2), xx}}\r\n\t\t\tset r1 to duplicate s\r\n\t\t\tconvert shape r1 given convert to oval\r\n\t\t\tset geometric bounds of r1 to pr1\r\n\t\t\tset r2 to duplicate s\r\n\t\t\tconvert shape r2 given convert to oval\r\n\t\t\tset geometric bounds of r2 to pr2\r\n\t\t\tset geometric bounds of s to ps\r\n\t\t\tset ns to add path s with {r1, r2}\r\n\t\t\ttransform ns in pasteboard coordinates from center anchor with matrix myRotateMatrix_org\r\n\t\tend repeat\r\n\tend tell\r\nend tell\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u30b5\u30a4\u30ba\u5909\u66f4\u6642\u306b\u3081\u3093\u3069\u304f\u3055\u3044\u306e\u3067\u3001\u5909\u66f4\u3057\u3066\u304b\u3089\u3082\u3046\u4e00\u5ea6\u3084\u308c\u3070\u3044\u3044\u3088\u3046\u306b\u5909\u66f4\u3002 \u25a0\u306e\u5916\u5074\u306b\u8ffd\u52a0\u3059\u308b\u65b9\u306f\u5927\u304d\u3055\u304c\u5909\u308f\u308b\u3093\u3067\u653e\u7f6e\u3002\u4f4d\u7f6e\u6c7a\u3081\u304c\u5909\u308f\u3089\u306a\u3044\u5185\u5074\u3067\u4f55\u3068\u304b\u3059\u308b\u30bf\u30a4\u30d7\u3060\u3051\u3002 tell application &quot;A [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-1236","post","type-post","status-publish","format-standard","hentry","category-dtptools"],"_links":{"self":[{"href":"https:\/\/www.white-room.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1236","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.white-room.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.white-room.jp\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.white-room.jp\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.white-room.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1236"}],"version-history":[{"count":0,"href":"https:\/\/www.white-room.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1236\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.white-room.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1236"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.white-room.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1236"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.white-room.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}