This file contains 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 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 SAEGUSA Yusuke | |
* @version 0.0.1 | |
*/ | |
if (app.documents.length === 0 || app.selection.length === 0) { | |
myError("001"); | |
} |
This file contains 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
// サンプルです | |
// 行頭に半角スラッシュを入れるとその行は読み込まれません | |
// フォントファミリー スタイル(ウェイト) GID値 後続テキスト | |
// という形でタブ区切りテキストを用意してください | |
// 最後の後続テキストは省略可能です | |
A-OTF UD新ゴ Pr6N L 12238 ^t | |
A-OTF UD新ゴ Pr6N L 12246 | |
A-OTF UD新ゴ Pr6N L 12228 : | |
// A-OTF UD新ゴ Pro M 12224 |
This file contains 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
/** | |
* Automatorの各設定 | |
* ワークフローが受け取る項目:テキスト | |
* 検索対象:すべてのアプリケーション | |
* 選択されたテキストを出力で置き換える をオン | |
*/ | |
function run(input, parameters) { | |
input = input[0].split(/ *-> */); | |
if (input.length !== 2) return; |
This file contains 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 PDFプリセットの一括読み込み | |
* @author Yusuke SAEGUSA | |
* @version 0.0.1 | |
*/ | |
var tgtFolder = Folder.selectDialog("joboptionsファイルのあるフォルダを指定してください"); | |
var presetFiles = tgtFolder.getFiles("*.joboptions"); | |
for (var i=0; i<presetFiles.length; i++) { |
This file contains 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() { | |
if (app.documents.length === 0) { | |
return; | |
} | |
if (app.name === "Adobe InDesign" && app.activeDocument.selection.length === 1) { | |
var result = checkDigit(app.activeDocument.selection[0]); | |
if (result === null) { | |
return; | |
} else if (result === true) { | |
alert("正しいチェックディジットです"); |
This file contains 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
/** | |
* 選択状態のバリデーション | |
*/ | |
if (app.documents.length === 0) myError("NOT_OPENED_DOCUMENT"); | |
if (app.documents[0].selection.length === 0) myError("INVALID_SELECTION"); | |
/** | |
* メイン処理 | |
*/ | |
var doc = app.activeDocument; |
This file contains 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 Toggle between "Dot Gain 15%" and "Working CMYK" for display proofing settings. | |
* @author @Uske_S | |
* @version 0.1.0 | |
*/ | |
var actWin = app.activeWindow; | |
if (actWin.proofingType === ProofingType.CUSTOM) { | |
actWin.proofingType = ProofingType.WORKING_CMYK; | |
} else { |
This file contains 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 F = Folder.selectDialog("フォルダを選択してください"); | |
main(F, "filePath", true); | |
function main(F, scptFile, closeFile) { | |
var inddFiles = F.getFiles("*.indd"); | |
var resAry = ["以下のファイルを正しく処理できませんでした"]; | |
var indd, flag; | |
if (!inddFiles) { | |
exit(); | |
} |
This file contains 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
if (!String.prototype.surroundQuotes) { | |
String.prototype.surroundQuotes = function(q) { | |
return q + this + q; | |
} | |
} | |
var p = { | |
url: "https://jlp.yahooapis.jp/FuriganaService/V2/furigana", | |
header: { | |
contentType: "application/json", | |
userAgent: "Yahoo AppID: <アプリケーションID>", //ここにClientIDを記述 |