Mastodon の API を叩くには以下の手順を踏む必要がある:
- OAuth2 クライアントを登録する
- アクセストークンを取得する
- アクセストークンを
Authorizationヘッダに指定して API にアクセスする
Mastodon の Apps API に登録情報を送ってクライアントを払い出してもらう(一度だけやれば OK).
| // 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のままに |
| #target illustrator | |
| var YamoScriptVersion = "Ver 1.3.1 (2025-11-19)"; | |
| // CMYK値をCMYのうち1〜2版+Kに変換するスクリプト | |
| // CMYKオブジェクトを選択して実行する。彩度調整オプションオフでは、ほぼ色を変えない | |
| // 配布gist | |
| // https://gist.github.com/Yamonov/3a90a9a50389c68095c5f14577ad09d5 | |
| // 2025-11-19:不必要な機能を無効化(ありがとう @Creold) |
| tell application "Mail" | |
| set theFrom to "" | |
| set theTos to {} | |
| set theCcs to {} | |
| set theBccs to {} | |
| set theSubject to "" | |
| set theContent to "" | |
| set theSignature to "" |
| #target "Illustrator" | |
| function mergedBounds(bns,nowBns){ | |
| if(!bns){ | |
| bns=nowBns; | |
| }else{ | |
| if(nowBns){ | |
| if(bns[0]>nowBns[0])bns[0]=nowBns[0]; | |
| if(bns[1]<nowBns[1])bns[1]=nowBns[1]; | |
| if(bns[2]<nowBns[2])bns[2]=nowBns[2]; |