Skip to content

Instantly share code, notes, and snippets.

@sttk3
sttk3 / resetTransformOfText.jsx
Last active January 18, 2026 12:10
Illustrator script: Reset transformation of selected text
/**
* @file Reset transformation of selected text
* [Illustrator script to batch restore distorted text](https://community.adobe.com/t5/illustrator-discussions/illustrator-script-to-batch-restore-distorted-text/td-p/15645426)
* @version 1.0.0
* @author sttk3.com
*/
(function() {
if(app.documents.length <= 0) {return ;}
var doc = app.documents[0] ;
@sttk3
sttk3 / setAttribute.jsx
Last active May 21, 2026 21:32
Illustrator script sample for setting CharacterAttributes and ParagraphAttributes on a TextRange. Fixes issue where values are ignored when matching the applied style.
/**
* @file Set CharacterAttributes/ParagraphAttributes to TextRange.
* Resolves an issue where values are ignored if they match the applied style
* [[ExtendScript] Set character and paragraph attributes without being ignored](https://community.adobe.com/t5/illustrator-discussions/extendscript-set-character-and-paragraph-attributes-without-being-ignored/td-p/15501179)
* @version 1.0.0
* @author sttk3.com
* @copyright © 2025 sttk3.com
*/
(function() {
@sttk3
sttk3 / sttk3_convert_japanese.json
Last active January 18, 2026 12:12
IllustratorでF7のカタカナ変換などを有効にするKarabiner-ElementsのComplex Modifications設定 [Illustratorを使用するときのみ、ファンクションキーが効かなくなりました。](https://community.adobe.com/t5/illustrator%E3%83%95%E3%82%A9%E3%83%BC%E3%83%A9%E3%83%A0-discussions/illustrator%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B%E3%81%A8%E3%81%8D%E3%81%AE%E3%81%BF-%E3%83%95%E3%82%A1%E3%83%B3%E3%82%AF%E…
{
"title": "Convert Japanese",
"rules": [
{
"description": "F6 Hiragana",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "f6"
@sttk3
sttk3 / isExpanded.psjs
Last active January 18, 2026 12:14
Photoshop UXP Script: layerSectionExpanded sample
/**
* @file layerSectionExpanded sample
* [check if a group is open or closed](https://community.adobe.com/t5/photoshop-ecosystem-discussions/check-if-a-group-is-open-or-closed/m-p/15134165)
* @version 1.0.0
* @author sttk3.com
* @copyright © 2025 sttk3.com
*/
const { app, action } = require('photoshop') ;
@sttk3
sttk3 / getXMPTitle.jsx
Last active January 18, 2026 12:15
Illustrator script sample for getting document name and XMP title
/**
* @file Sample for getting document name and XMP title.
* [Illustrator - Read XMP Title](https://community.adobe.com/t5/illustrator-discussions/illustrator-read-xmp-title/td-p/15122774)
* @version 1.0.0
* @author sttk3.com
*/
(function() {
if(app.documents.length <= 0) {return ;}
var doc = app.documents[0] ;
@sttk3
sttk3 / executeCloudScript.jsx
Created January 14, 2025 07:36
Illustrator script to execute ExtendScript saved in cloud document. Proof-of-concept
/**
* @file Illustrator script to execute ExtendScript saved in cloud document. Proof-of-concept.
* Assuming json2.jsx is in the same folder as this script
* @version 1.0.0
* @author sttk3.com
* @copyright © 2025 sttk3.com
*/
//@target 'illustrator'
//@include 'json2.jsx'
@sttk3
sttk3 / documentFontNames.jsx
Last active January 18, 2026 12:17
ai/epsファイルに使用されているフォント名一覧を取得し、テキストとして保存する。合成フォントの構成フォント名も含む
/**
* @file ai/epsファイルに使用されているフォント名一覧を取得し、テキストとして保存する。
* 合成フォントの構成フォント名も含む
* [書き出した使用フォント名が5桁の数字になる](https://community.adobe.com/t5/adobe-fonts%E3%83%95%E3%82%A9%E3%83%BC%E3%83%A9%E3%83%A0-discussions/%E6%9B%B8%E3%81%8D%E5%87%BA%E3%81%97%E3%81%9F%E4%BD%BF%E7%94%A8%E3%83%95%E3%82%A9%E3%83%B3%E3%83%88%E5%90%8D%E3%81%8C5%E6%A1%81%E3%81%AE%E6%95%B0%E5%AD%97%E3%81%AB%E3%81%AA%E3%82%8B/m-p/15060896?profile.language=ja#M1254)
* @version 1.0.0
* @author sttk3.com
* @copyright © 2024 sttk3.com
*/
//@target 'illustrator'
@sttk3
sttk3 / makePDFPresentation.jsx
Last active November 16, 2024 03:41
Export a multi-page PDF with PDF Presentation. Disable "Advance Every 5 seconds" and use desired PDF preset
/**
* @file Make PDF presentation.
* [Is it possible to make a script that creates a PDF out of images in a folder?](https://community.adobe.com/t5/photoshop-ecosystem-discussions/is-it-possible-to-make-a-script-that-creates-a-pdf-out-of-images-in-a-folder/td-p/14984011)
* @version 1.0.0
* @author sttk3.com
* @copyright © 2024 sttk3.com
*/
//#target 'photoshop'
@sttk3
sttk3 / showICC.jsx
Last active April 22, 2024 04:39
ExtendScript: Display ICC profile name of the selected linked image in dialog by Illustrator
/**
* @file Display ICC profile name of the selected linked image in dialog by Illustrator
* [Getting Placed Image's ICC Profile with Illustrator ExtendScript](https://community.adobe.com/t5/illustrator-discussions/getting-placed-image-s-icc-profile-with-illustrator-extendscript/td-p/14569584)
* @version 1.0.0
* @author sttk3.com
* @copyright © 2024 sttk3.com
*/
(function() {
if(app.documents.length <= 0) {return ;}
@sttk3
sttk3 / compositeFont.jsx
Last active March 7, 2024 01:09
Illustratorの合成フォントの内訳PostScript Nameを取得し、alertで表示するサンプル用ExtendScript
/**
* @file Illustratorの合成フォントの内訳PostScript Nameを取得し、alertで表示するサンプル用ExtendScript
* @version 1.0.1
* @author sttk3.com
* @copyright © 2024 sttk3.com
*/
//@target 'illustrator'
(function() {