{"id":1095,"date":"2012-02-08T03:18:53","date_gmt":"2012-02-07T18:18:53","guid":{"rendered":"http:\/\/www.white-room.jp\/blog\/?p=1095"},"modified":"2015-08-13T05:31:30","modified_gmt":"2015-08-12T20:31:30","slug":"illustrator%e3%81%a7indesign%e3%81%ae%e4%b8%80%e7%95%aa%e5%b7%a6%e3%81%ae%e3%83%9c%e3%82%bf%e3%83%b3%e3%81%bf%e3%81%9f%e3%81%84%e3%81%aa%e3%81%ae%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.white-room.jp\/blog\/?p=1095","title":{"rendered":"illustrator\u3067indesign\u306e\u4e00\u756a\u5de6\u306e\u30dc\u30bf\u30f3\u307f\u305f\u3044\u306a\u306e\u3002"},"content":{"rendered":"<p>illustrator\u306b\u3044\u3063\u3071\u3044\u753b\u50cf\u3092\u8cbc\u308b\u4f5c\u696d\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u3053\u3093\u306a\u3082\u3093\u4eba\u9593\u306e\u3084\u308b\u4f5c\u696d\u3058\u3083\u306a\u3044\u3060\u308dw\u3000\u3068\u304b\u601d\u3063\u3066\u3001indesign\u306e\u30d5\u30ec\u30fc\u30e0\u306b\u5747\u7b49\u306b\u6d41\u3057\u8fbc\u3080\u30dc\u30bf\u30f3\u307f\u305f\u3044\u306a\u30d7\u30e9\u30b0\u30a4\u30f3\u306f\u7121\u3044\u3082\u306e\u304b\uff1f\u3000\u3068\u63a2\u3057\u3066\u307f\u307e\u3057\u305f\u304c\u3001\u898b\u3064\u304b\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u4f3c\u305f\u3088\u3046\u306a\u3082\u306e\u3092\u3064\u304f\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>SyntaxHighliterPlus\u306bApplescript\u7528\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u304c\u306a\u3044\u306e\u3067\u8272\u4ed8\u3051\u304c\u304a\u304b\u3057\u3044\u3067\u3059\u304c\u3001\u305d\u306e\u305f\u3081\u306bJS\u3067\u66f8\u304f\u306e\u3082\u306a\u3093\u306a\u306e\u3067\uff08\u307e\u3041\u3001AS\u306e\u3088\u3046\u306a\u65e9\u3055\u3067\u306f\u66f8\u3051\u306a\u3044\u308f\u3051\u3067\u3059\u304cw\uff09\u3001JS\u7528\u306e\u8272\u4ed8\u3051\u3067\u3059\u307f\u307e\u305b\u3093\u3002<\/p>\n<p>\u25a1\u3067\u3082\u25cb\u3067\u3082\u2606\u3067\u3082\u306a\u3093\u3067\u3082\u3001\u30d5\u30ec\u30fc\u30e0\u306b\u5747\u7b49\u306b\u6d41\u3057\u8fbc\u3093\u3067\u30bb\u30f3\u30bf\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002<\/p>\n<p>\u914d\u7f6e\u30d5\u30a1\u30a4\u30eb\u3068\u30af\u30ea\u30c3\u30d4\u30f3\u30b0\u30d1\u30b9\u304c\u4e00\u5bfe\u4e00\u306e\u3082\u306e\u3060\u3051\u5bfe\u8c61\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\ntell application &quot;Adobe Illustrator&quot;\r\n\ttell document 1\r\n\t\tset grilst to group items whose selected = true\r\n\t\trepeat with ll in grilst\r\n\t\t\tif (count placed items of ll) = 1 then\r\n\t\t\t\tset {pir, plir} to {a reference to path item 1 of ll, a reference to placed item 1 of ll}\r\n\t\t\t\tset {w, h, {x, y}} to {width of pir, height of pir, position of pir}\r\n\t\t\t\tset {w2, h2} to {width of plir, height of plir}\r\n\t\t\t\tset {width of plir, height of plir} to {w, h2 * w \/ w2}\r\n\t\t\t\tif h &gt; h2 * w \/ w2 then\r\n\t\t\t\t\tset {width of plir, height of plir} to {w2 * h \/ h2, h}\r\n\t\t\t\tend if\r\n\t\t\t\tset {xdif, ydif} to {(w - (width of plir)) \/ 2, (h - (height of plir)) \/ 2}\r\n\t\t\t\tif xdif &lt; 0 then set xdif to -xdif\r\n\t\t\t\tif ydif &lt; 0 then set ydif to -ydif\r\n\t\t\t\tset position of plir to {x - xdif, y + ydif}\r\n\t\t\tend if\r\n\t\tend repeat\r\n\tend tell\r\nend tell\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>illustrator\u306b\u3044\u3063\u3071\u3044\u753b\u50cf\u3092\u8cbc\u308b\u4f5c\u696d\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u3053\u3093\u306a\u3082\u3093\u4eba\u9593\u306e\u3084\u308b\u4f5c\u696d\u3058\u3083\u306a\u3044\u3060\u308dw\u3000\u3068\u304b\u601d\u3063\u3066\u3001indesign\u306e\u30d5\u30ec\u30fc\u30e0\u306b\u5747\u7b49\u306b\u6d41\u3057\u8fbc\u3080\u30dc\u30bf\u30f3\u307f\u305f\u3044\u306a\u30d7\u30e9\u30b0\u30a4\u30f3\u306f\u7121\u3044\u3082\u306e\u304b\uff1f\u3000\u3068\u63a2\u3057\u3066\u307f\u307e\u3057\u305f\u304c\u3001\u898b\u3064\u304b [&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-1095","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\/1095","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=1095"}],"version-history":[{"count":1,"href":"https:\/\/www.white-room.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1095\/revisions"}],"predecessor-version":[{"id":1642,"href":"https:\/\/www.white-room.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1095\/revisions\/1642"}],"wp:attachment":[{"href":"https:\/\/www.white-room.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1095"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.white-room.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1095"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.white-room.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1095"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}