Skip to content

Instantly share code, notes, and snippets.

@cg-method
Created August 1, 2019 22:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cg-method/2f8490db29be4151769f2e8355422717 to your computer and use it in GitHub Desktop.
Save cg-method/2f8490db29be4151769f2e8355422717 to your computer and use it in GitHub Desktop.
【Photoshop】画像アセットをON.jsx
startAssets();
function startAssets() {
var pluginName = "generator-assets-dummy-menu";
try {
var generatorDesc = new ActionDescriptor();
generatorDesc.putString(app.stringIDToTypeID("name"), pluginName);
var returnDesc = executeAction(app.stringIDToTypeID("generateAssets"), generatorDesc, DialogModes.NO);
} catch (e) {
alert();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment