Embed linked image by javascript
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:
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 );
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.