Skip to content

Instantly share code, notes, and snippets.

#targetengine main
try {
//for PS and ID, we need the display name of the Color Settings file. This is what you see in Edit>ColorSettings
var colorSettingsFile = "North America Prepress 2";
if (app.name === "Adobe InDesign") {
//InDesign uses app.colorSettings.cmsSettings
app.colorSettings.cmsSettings = colorSettingsFile;
//alert("Color Settings are now: " + app.colorSettings.cmsSettings);
} else if (app.name === "Adobe Photoshop") {
@jameslockman
jameslockman / EPSThumbnailExport.jsx
Last active July 27, 2018 14:44
Sample InDesign Server script to generate thumbnails of assets sent from Adobe Experience Manager
//Thumbnail generator for AEM Assets
//This script creates a new 319x319 document, imports the payload onto the page, and centers
//and scales the payload to fit the page.
//It next exports the image as a series of thumbnail renditions.
//Lastly, it posts the renditions back to AEM as renditions of the payload.
//==============================================================================
// Export the inbound document as AEM Thumbnails
//==============================================================================