Copy link to clipboard
Copied
Hey guys im getting an error for using the action script listener for embed linked image.
Here's the error:
and here's the code I used:
Before calling this function, you must make active or select (one or more) layers.
If you need to convert all layers of a document, then instead of selecting them in a loop, easier to do this:
var idplacedLayerEmbedAll = stringIDToTypeID( "placedLayerEmbedAll" );
executeAction( idplacedLayerEmbedAll, undefined, DialogModes.NO );
Copy link to clipboard
Copied
Before calling this function, you must make active or select (one or more) layers.
If you need to convert all layers of a document, then instead of selecting them in a loop, easier to do this:
var idplacedLayerEmbedAll = stringIDToTypeID( "placedLayerEmbedAll" );
executeAction( idplacedLayerEmbedAll, undefined, DialogModes.NO );
Copy link to clipboard
Copied
My suggestion is very close to the one supplied by Dmitry:
app.runMenuItem(stringIDToTypeID('placedLayerConvertToEmbedded'));
or
app.runMenuItem(stringIDToTypeID('placedLayerEmbedAll'));
Find more inspiration, events, and resources on the new Adobe Community
Explore Now