Skip to content

Instantly share code, notes, and snippets.

@monokano
monokano / 本当の標準字形に戻す.jsx
Last active April 17, 2024 20:44
Illustratorの選択テキストを本当の標準字形に戻すスクリプト
//Illustratorの選択テキストを本当の標準字形に戻す
var selObj = activeDocument.selection;
if (selObj.length > 0) {
//オブジェクト選択
for (var i = 0; i < selObj.length; i++) {
if (selObj[i] != undefined){
if (selObj[i].typename== "TextFrame") {
var myText = selObj[i].textRange;
@monokano
monokano / リアルタイムの描画と編集OFF.jsx
Created April 2, 2024 05:31
Illustratorの「パフォーマンス > リアルタイムの描画と編集」をOFFにするスクリプト
app.preferences.setBooleanPreference("LiveEdit_State_Machine",false);
@monokano
monokano / 全角文字の正規表現.txt
Last active April 17, 2024 03:31
Adobe-Japan1をベースにした全角文字の正規表現
[\x{00A7}-\x{00A8}\x{00B0}-\x{00B1}\x{00B4}\x{00B6}\x{00D7}\x{00F7}\x{0386}\x{0388}-\x{038A}\x{038C}\x{038E}-\x{03A1}\x{03A3}-\x{03CE}\x{03D0}-\x{03D1}\x{03D5}\x{03DB}\x{0401}-\x{040C}\x{040E}-\x{044F}\x{0451}-\x{045C}\x{045E}-\x{045F}\x{2003}\x{2010}\x{2015}-\x{2016}\x{2018}-\x{2019}\x{201C}-\x{201D}\x{2020}-\x{2021}\x{2025}-\x{2026}\x{2030}\x{2032}-\x{2033}\x{203B}-\x{203C}\x{2042}\x{2047}-\x{2049}\x{2051}\x{205A}\x{205D}\x{20DD}-\x{20DE}\x{2100}\x{2103}\x{2105}\x{2109}-\x{210A}\x{210F}\x{2113}\x{2116}\x{2121}\x{212B}\x{2135}\x{213B}\x{2150}-\x{2152}\x{2156}-\x{215A}\x{2160}-\x{216B}\x{2170}-\x{217B}\x{217F}\x{2189}\x{2190}-\x{2194}\x{2196}-\x{2199}\x{21C4}-\x{21C6}\x{21CB}-\x{21CC}\x{21D0}\x{21D2}\x{21D4}\x{21E6}-\x{21E9}\x{21F5}\x{2200}\x{2202}-\x{2203}\x{2205}\x{2207}-\x{2208}\x{220A}-\x{220B}\x{2211}-\x{2213}\x{221A}\x{221D}-\x{2220}\x{2227}-\x{222E}\x{2234}-\x{2235}\x{223D}\x{2243}\x{2252}\x{2260}-\x{2261}\x{2266}-\x{2267}\x{226A}-\x{226B}\x{2272}-\x{2273}\x{2282}-\x{2283}\x{2286}-\x{2287}\x{2295}-\x{2
@monokano
monokano / コメント末尾の改行を削除.js
Last active April 5, 2024 07:57
コメント末尾の改行を削除するAcrobatのJavaScript
app.addMenuItem({
cName: "Remove newlines at the end of comments",
cUser: "\u30B3\u30E1\u30F3\u30C8\u672B\u5C3E\u306E\u6539\u884C\u3092\u524A\u9664",
cParent: "Edit",
nPos:-1,
cEnable:!1,
cExec: "Remove_newlines()"
});
app.addMenuItem({
@monokano
monokano / InDesignデフォルト調整.jsx
Last active April 17, 2024 12:42
InDesignのアプリケーションデフォルトを調整するスクリプト
//////////////////////////////////////////////////////////
// InDesignのアプリケーションデフォルトを調整する
//////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////
// 全バージョン共通
//すべての黒を正確に表示
with (app.colorSettings) {
idealizedBlackToScreen=false; //スクリーン
@monokano
monokano / CleanupPasteboard.jsx の日本語ローカライズ
Last active March 1, 2023 05:24
これをCleanupPasteboard.jsx の該当箇所にコピペすると日本語表記になります。
//===============================================
// <L10N> :: FRENCH_LOCALE :: JAPANESE_LOCALE
//===============================================
// Remove objects outside: :: Supprimer les objets au-del\u00E0 de :: \u9818\u57DF\u5916\u306E\u30AA\u30D6\u30B8\u30A7\u30AF\u30C8\u3092\u524A\u9664\uFF1A
// Bleed :: Fonds perdus :: \u88C1\u3061\u843D\u3068\u3057
// Slug :: Ligne-bloc :: \u5370\u5237\u53EF\u80FD\u9818\u57DF
// Custom page offset: :: Distance de la page :: \u30DA\u30FC\u30B8\u5916\uFF1A
// Parse master spreads :: Inclure les gabarits :: \u89AA\u30DA\u30FC\u30B8\u3092\u542B\u3080
// Preserve threaded text frames :: Pr\u00E9server les blocs cha\u00EEn\u00E9s :: \u9023\u7D50\u30C6\u30AD\u30B9\u30C8\u30D5\u30EC\u30FC\u30E0\u3092\u524A\u9664\u3057\u306A\u3044
// Items removed: :: Objets supprim\u00E9s :: \u524A\u9664\u3057\u305F\u30AA\u30D6\u30B8\u30A7\u30AF\u30C8
@monokano
monokano / Illustratorデフォルト簡易調整.jsx
Last active April 15, 2023 06:13
Illustratorのアプリケーションデフォルトを簡易調整するスクリプト
//////////////////////////////////////////////////////////
// Illustratorのアプリケーションデフォルトを調整する(簡易版)
//////////////////////////////////////////////////////////
with (app.preferences) {
/****************************************************/
// 使用歴が長いユーザーはここを変更するとかなり使いやすくなる
//一般 > 詳細なツールヒントを表示 OFF
@monokano
monokano / aiver3.py
Last active December 14, 2022 03:08
Illustratorファイル(ai, eps)の作成アプリバージョンと保存バージョンを検出するPython3スクリプト
#!/usr/bin/env python3
#
# Usage: python3 aiver3.py illustrator-file(ai,eps)
#
# This script will detect the app version written in the illustrator file.
#
import sys, os, re
def getAppName(ver):
@monokano
monokano / inddver3.py
Last active December 14, 2022 03:10
InDesignファイル(ドキュメント、ブック、ライブラリ、テンプレート)の作成アプリバージョンを検出するPython3スクリプト
#!/usr/bin/env python3
#
# Usage: python3 inddver3.py indesign-file(indd,indb,indl,indt)
#
# This script will detect the app version written in the indesign file.
#
import sys, os, re
def getAppName(verDec):
@monokano
monokano / コピー元のレーヤーにペースト.jsx
Created December 6, 2022 09:08
Illustratorの「コピー元のレーヤーにペースト」をモーダルウィンドウ上でON/OFFするJavaScript
// Illustratorの「コピー元のレーヤーにペースト」をモーダルウィンドウ上でON/OFFする
var b = app.preferences.getBooleanPreference('layers/pastePreserve');
var status = "";
var buttonText = ""
if ( b ){
status = "ON";
buttonText = "OFF";
}else{