2021/08/24:追記2
memo: 類似(as aliasで回避)
Bug details
Can't Place Images with Applescript on MacOS 10.15 Catalina
InDesign 15.0.1
The Place command now fails in Applescript, following an upgrade to Catalina.
The "Image Catalog" sample script also fails to place the images in the same manner. Image placement fails with an error 1708, <<the file string>> doesn't understand the "place" message.
2021/08/24:追記
10.14で OSAX の廃止が原因か…?
こやつが「よしなに」やってくれてた(か?) /Library/ScriptingAdditions/Adobe Unit Types.osax
現象は、14>OK, 15>NG なので、違うかぁ。
でも 13>14の更新インストールだから動いたとか? うーん。
2021/08/23:追記
シンプルに書き直したら14でも15でも動作した。
下記の「"macHD:data:hoge.indd"」は、実際はこんな感じでテストしてた。
tell "Adobe InDesign xxxx" set myItem to 1 of all graphics of document 1 set A to POSIX path of file (path of item link of myItem) ★ 15でエラーに… set A to POSIX path of (path of item link of myItem)
InDesign側の返り値が変わったのかな?
初回 記載
10.14までどちらでも大丈夫だった(気がする)
POSIX path of "macHD:data:hoge.indd" POSIX path of file "macHD:data:hoge.indd"
10.15(Catalina) で実行したら file のある方がうまく動作しない(気がする)
POSIX path of "macHD:data:hoge.indd" POSIX path of file "macHD:data:hoge.indd" ★ ← NGなの?
Catalina からの仕様変更なのか、Catalinaだけの不具合なのか…。
macOS 11は未検証
回避
file 消せばいいんだけど…