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
// Production steps of ECMA-262, Edition 5, 15.4.4.17 | |
// Reference: http://es5.github.io/#x15.4.4.17 | |
if (!Array.prototype.some) { | |
Array.prototype.some = function(fun/*, thisArg*/) { | |
'use strict'; | |
if (this == null) { | |
throw new TypeError('Array.prototype.some called on null or undefined'); | |
} | |
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
//DESCRIPTION:Break text thread | |
/* | |
About Script | |
InDesign makes breaking of thread between text frames without otherwise changing the layout surprisingly difficult! | |
With this script, easily break the text thread | |
(a) between selected text frames | |
(b) between all frames in the selected story, | |
(c) throughout the document according to a selected paragraph style (great for dividing a long document into separate stories, one per chapter) |
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 { |