This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Illustrator: 最前面ドキュメントのカラーモードに合わせてカラーパネルの表示を切り替えるやつ | |
| // 2025.10.22 (z-) | |
| main(); | |
| function main(){ | |
| if(app.documents.length == 0) return; | |
| app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS; | |
| var colorSpace = app.activeDocument.documentColorSpace.toString().replace(/^.+\./, ""); | |
| colorSpace = colorSpace == "RGB"? "HSB" : colorSpace; // RGBならHSBに、CMYKならCMYKのままに |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // File: mojindent.jsx | |
| // Author: (z-) ajabon.catfood.jp | |
| // Date: 2025-11-10 | |
| // Version: 1.1.2 | |
| // Desc: InDesignで段落のインデント値を「文字数」で扱うScriptUI。 | |
| // 同一設定であれば複数処理が可能。 | |
| // オブジェクト未選択状態ではドキュメントデフォルトの段落スタイル設定が変更されます。 | |
| // ※縦組みは(まだ)考慮していません | |
| // | |
| // shiftキー併用で増減値が5になります |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function openDocuments(docs) { | |
| var app = Application.currentApplication(); | |
| app.includeStandardAdditions = true; | |
| for (var i = 0; i < docs.length; i++) { | |
| var filePath = docs[i].toString(); | |
| // ファイル名と拡張子を除去 | |
| var fileName = filePath.split("/").pop(); | |
| var baseName = fileName.replace(/\.[^\.]+$/, ""); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // id_changeGrepOnPageOrSpread.jsx (z-) | |
| // InDesignのアクティブなページ / スプレッド上のテキストフレームだけを正規表現検索置換する | |
| // 正規表現検索置換は、アプリ標準の検索置換ウィンドウ上で設定しておいてください。 | |
| // テキスト検索置換には非対応です | |
| // | |
| // 2025.09.16 ver_a てきとう | |
| // 2025.09.17 ver_b 検索文字、検索形式がととのっているか最初にチェックするよう改善 | |
| try{ | |
| app.findGrep(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // baselineGridSetter.jsx InDesign 2025.09.12 (z-) | |
| // | |
| // ヨコ組み限定(タテ組み時のエラー処理してない) | |
| // フレームグリッドやカスタムベースライングリッドなどの情報をベースライングリッドに転用するやつ | |
| // | |
| // カスタムのベースライングリッド > フレームグリッド > ドキュメントグリッド の優先度で対応する | |
| // フレームグリッド > ドキュメントグリッド の場合は、揃え位置を選択できる | |
| // 選択テキスト or テキストフレームにグリッド揃えがある場合、ラジオボタンの初期選択に反映 | |
| // てなかんじです |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //test_プロンプトで入力したメタ文字を再解釈するやつ | |
| var pr = prompt("", ""); //"a\tb", "a\nb" など | |
| alert(pr); | |
| alert(convertToMetaChar(pr)); | |
| function convertToMetaChar (str) { | |
| return eval("\"" + str + "\""); | |
| } |