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
| var doc = app.activeDocument; | |
| var sel = doc.selection; | |
| var tgt = sel[sel.length-1]; | |
| var newSelection = []; | |
| app.doScript(main, ScriptLanguage.JAVASCRIPT, null, UndoModes.ENTIRE_SCRIPT); | |
| function main(){ | |
| var tempRuler = doc.viewPreferences.rulerOrigin; | |
| doc.viewPreferences.rulerOrigin = RulerOrigin.SPREAD_ORIGIN; | |
| for (var i=sel.length-2; i>=0; i--) { |
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 toFullWidth(theRange) { | |
| // 初期化 | |
| app.findTransliteratePreferences = NothingEnum.nothing; | |
| app.changeTransliteratePreferences = NothingEnum.nothing; | |
| // 文字種変換の設定 | |
| app.findTransliteratePreferences.findCharacterType = FindChangeTransliterateCharacterTypes.HALF_WIDTH_ROMAN_SYMBOLS; | |
| app.changeTransliteratePreferences.changeCharacterType = FindChangeTransliterateCharacterTypes.FULL_WIDTH_ROMAN_SYMBOLS; |
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 toHalfWidth(theRange) { | |
| // 初期化 | |
| app.findTransliteratePreferences = NothingEnum.nothing; | |
| app.changeTransliteratePreferences = NothingEnum.nothing; | |
| // 文字種変換の設定 | |
| app.findTransliteratePreferences.findCharacterType = FindChangeTransliterateCharacterTypes.FULL_WIDTH_ROMAN_SYMBOLS; | |
| app.changeTransliteratePreferences.changeCharacterType = FindChangeTransliterateCharacterTypes.HALF_WIDTH_ROMAN_SYMBOLS; |
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 ai/epsファイルに使用されているフォント名一覧を取得し、テキストとして保存する。 | |
| * 合成フォントの構成フォント名も含む | |
| * @version 1.0.0 | |
| * @author sttk3.com | |
| * @copyright © 2024 sttk3.com | |
| */ | |
| //@target 'illustrator' | |
| $.localize = true ; |
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
| /** | |
| * @fileoverview 選択したセルの高さを変更する | |
| * @author Yusuke SAEGUSA | |
| * @version 0.0.1 | |
| */ | |
| if (app.documents.length === 0) { | |
| exit(); | |
| } | |
| if (app.activeDocument.selection.length !== 1) { |
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
| var doc = app.activeDocument; | |
| var compFonts = doc.compositeFonts; | |
| for (var i=compFonts.length-1; i>0; i--) { | |
| compFonts[i].remove(); | |
| } |
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 Sample script to enable/disable the contextual task bar in Illustrator. | |
| * Requires Illustrator 2024(28) or later | |
| * @version 1.0.1 | |
| * @author sttk3.com | |
| * @copyright © 2024 sttk3.com | |
| */ | |
| (function() { | |
| var key = 'ContextualTaskBarEnabled' ; |
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
| // G331_unitSwitch.jsx | |
| // ミリ単位とピクセル単位をすぐに切り替えるスクリプトです | |
| // http://gorolib.blog.jp/archives/70501774.html | |
| // 0:inch, 1:mm, 2:pt, 3:pica, 4:cm, 5:Q/H, 6:px | |
| PRE = app.preferences | |
| ptEQ = 25.4/72 | |
| CKL = 0.1/ptEQ // mmのときのキー入力値です | |
| if(PRE.getIntegerPreference('rulerType')==6){ |
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
| app.preferences.setBooleanPreference("LiveEdit_State_Machine",false); |
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
| [\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 |
NewerOlder