Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[InDesign][ExtendScript]PDF書き出しプリセットをまとめて読み込むスクリプト
/**
* @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++) {
try{
app.importFile(ExportPresetFormat.PDF_EXPORT_PRESETS_FORMAT, presetFiles[i]);
} catch(e) {
alert(e);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment