Archive for the 'InDesign CC 2015' Category

2015/06/17 Adobe CC 2015がリリース、InDesign 11でpropertiesが取得できない致命的なバグが修正される

毎年機能アップされ、Adobeアプリケーションも使い放題・・・というふれこみのAdobe Creative Cloudでしたが、「新しいバグが追加され、まったく直らない」という傾向が観測されていました。

id151.png

InDesign CC 2014では「AppleScriptからオブジェクトのプロパティ値が取得できない」という致命的なバグがあり(これでプログラムを組めといわれても無理、、、)、Adobeのフォーラムに英語でバグの報告をしてもリアクションも何もなく、「直す気がない」ものと判断。

Adobeの対応がこんなにダメな状況では、2年しばりの契約が終わったらAdobe CCの契約終了が妥当と判断していました

本日CC 2015のアップデートが来ていたので、ためしに(前バージョンを削除せずに)アップデートしてみました。すると、InDesignの上記のバグが発生していないことが確認できました。つまり、普通にオブジェクトのプロパティが取得できる、と。

id152.png

これによって、「運がよければ翌年に修正される可能性がある」という経験則が得られました。cc2015で新たなバグが発見された場合には、cc2015では修正されずcc2016を待つ必要があるのでしょう。

AppleScript名:InDesign CC 2015のバグ修正確認
tell application “Adobe InDesign CC 2015″
  tell document 1
    set aSel to selection
    
set aaSel to first item of aSel
    
properties of aaSel
  end tell
end tell

–> {absolute rotation angle:0.0, absolute horizontal scale:100.0, absolute shear angle:0.0, absolute vertical scale:100.0, baseline frame grid options:baseline frame grid options of text frame id 268 of spread id 227 of document id 1 of application “Adobe InDesign CC 2015″, horizontal layout constraints:{flexible dimension, fixed dimension, flexible dimension}, id:268, grid data:grid data of text frame id 268 of spread id 227 of document id 1 of application “Adobe InDesign CC 2015″, overflows:false, overridden:false, parent page:page id 232 of spread id 227 of document id 1 of application “Adobe InDesign CC 2015″, flip:none, vertical layout constraints:{flexible dimension, fixed dimension, flexible dimension}, associated XML element:nothing, all graphics:{}, all page items:{}, applied object style:object style id 152 of document id 1 of application “Adobe InDesign CC 2015″, content type:text type, end cap:butt end cap, end join:miter end join, fill tint:-1.0, fill color:swatch id 14 of document id 1 of application “Adobe InDesign CC 2015″, absolute flip:none, start text frame:text frame id 268 of spread id 227 of document id 1 of application “Adobe InDesign CC 2015″, gap color:swatch id 14 of document id 1 of application “Adobe InDesign CC 2015″, gap tint:-1.0, geometric bounds:{37.49999999973, 50.999999999936, 68.166666666397, 135.333333333269}, text frame index:1, rotation angle:0.0, stroke tint:-1.0, left line end:none, stroke color:swatch id 14 of document id 1 of application “Adobe InDesign CC 2015″, stroke weight:0.0, linked Page Item options:linked Page Item options of text frame id 268 of spread id 227 of document id 1 of application “Adobe InDesign CC 2015″, end text frame:text frame id 268 of spread id 227 of document id 1 of application “Adobe InDesign CC 2015″, miter limit:4.0, nonprinting:false, next text frame:nothing, object export options:object export options of text frame id 268 of spread id 227 of document id 1 of application “Adobe InDesign CC 2015″, overridden master page item:nothing, anchored object settings:anchored object settings of text frame id 268 of spread id 227 of document id 1 of application “Adobe InDesign CC 2015″, animation settings:animation settings of text frame id 268 of spread id 227 of document id 1 of application “Adobe InDesign CC 2015″, all articles:{}, local display setting:default, shear angle:0.0, text frame preferences:text frame preferences of text frame id 268 of spread id 227 of document id 1 of application “Adobe InDesign CC 2015″, timing settings:timing settings of text frame id 268 of spread id 227 of document id 1 of application “Adobe InDesign CC 2015″, parent:spread id 227 of document id 1 of application “Adobe InDesign CC 2015″, top left corner option:none, top right corner option:none, bottom left corner option:none, bottom right corner option:none, contents:”aaaaaaaaaaaaaaaa”, top left corner radius:5.0, top right corner radius:5.0, bottom left corner radius:5.0, bottom right corner radius:5.0, gradient fill angle:0.0, gradient fill length:0.0, gradient stroke angle:0.0, gradient stroke length:0.0, gradient stroke start:{93.166666666603, 52.833333333064}, gradient fill start:{93.166666666603, 52.833333333064}, horizontal scale:100.0, index:1, item layer:layer id 224 of document id 1 of application “Adobe InDesign CC 2015″, locked:false, name:”", object reference:text frame id 268 of spread id 227 of document id 1 of application “Adobe InDesign CC 2015″, label:”", previous text frame:nothing, visible:true, vertical scale:100.0, right line end:none, stroke alignment:center alignment, parent story:text flow id 250 of document id 1 of application “Adobe InDesign CC 2015″, stroke type:stroke style id 23081 of document id 1 of application “Adobe InDesign CC 2015″, text wrap preferences:text wrap preferences of text frame id 268 of spread id 227 of document id 1 of application “Adobe InDesign CC 2015″, visible bounds:{37.49999999973, 50.999999999936, 68.166666666397, 135.333333333269}, content transparency settings:content transparency settings of text frame id 268 of spread id 227 of document id 1 of application “Adobe InDesign CC 2015″, fill transparency settings:fill transparency settings of text frame id 268 of spread id 227 of document id 1 of application “Adobe InDesign CC 2015″, transparency settings:transparency settings of text frame id 268 of spread id 227 of document id 1 of application “Adobe InDesign CC 2015″, stroke transparency settings:stroke transparency settings of text frame id 268 of spread id 227 of document id 1 of application “Adobe InDesign CC 2015″}

★Click Here to Open This Script 

▲InDesign上でドキュメントを作成し、何らかのオブジェクトを配置・選択した状態で実行