メモ:
WPF Listboxで要素にフォーカスした際、スクロールバーが自動で動くのを停止したい
2021/08/24:追記2
memo: 類似(as aliasで回避)
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 消せばいいんだけど…
Windows(Visual Studio)環境で、InDesign CC2021 のプラグイン開発で
カスタムビルド付近(merge_res.cmd)。.idrc ファイルが生成されずエラーになってるっぽいので、ODFRC関連だと思っていたが違った。
>Performing Custom Build Tools >CUSTOMBUILD : # error : Could not open response file 'Zt' >CUSTOMBUILD : # Fatal error : >odfrc - Execution terminated! >C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066: '..\Source\Cs.fr' のカスタム ビルドがコード 1 で終了しました。
SDKのPorting Guide に「相性悪いから無効にしろ」って書いてあった。
IntelliSense has never worked very well for InDesign code, and you may find that IntelliSense red squiggles appear under nearly every InDesign type or API, despite your project compiling successfully.
C/C++ ファイルの時だけ、無効にすればいい。
オプション>テキストエディタ>C/C++>詳細設定>IntelliSense (On/Off)
ほんとに解決した・・・のか?(不安)
こくちーず って販売枚数と定員(数)の 別々なのか。
へー。
メモ:
InDesign cc2021 のプラグインSDKで、サンプル(SDKSamples.sln)をビルド時 エラーになったのでメモ:
エラー C2672 '_Getloctxt': 一致するオーバーロードされた関数が見つかりませんでした。...SDK\source\precomp\msvc\xlocnum_hack_vs2019.h 383 エラー C2780 'int std::_Getloctxt(_InIt &,_InIt &,size_t,const _Elem *,const std::_Case_sensitive)': 5 引数が必要です - 4 が設定されます。 ..SDK\source\precomp\msvc\xlocnum_hack_vs2019.h 383
↑ にある通り、xlocnum_hack_vs2019.h を直で書き換え
_Case_sensitive _MATCHING = _Case_sensitive::_Yes; ★ 追加 // switch (_Getloctxt(_First, _Last, 2, _Str.c_str())) { switch (_Getloctxt(_First, _Last, 2, _Str.c_str(), _MATCHING)) { ★更新
Visual Studio Extensions:RemoveBlank2 更新
更新といっても別アプリ(Extensions)でリリース。
(バージョン混在のやり方が分からんかった)
以前のやつ
(前からだっけ???)
難しく考えない。3周くらいグルグル試行錯誤して、元の書き方に戻ったら(なぜか)できた。