Skip to main content
Participating Frequently
January 8, 2019
Question

Please help to fix script that works perfectly on Ai 2015 but not perfect on Ai 2017

  • January 8, 2019
  • 1 reply
  • 858 views

Dear all,

I have bellow script that i used on Ai 2015.

It's just for embed all linked images and no problem at all.

#target Illustrator

if ( app.documents.length > 0 ) { 

   while ( app.activeDocument.placedItems.length > 0 ) { 

  placedArt = app.activeDocument.placedItems[0]; 

  placedArt.embed(); 

   } 

}

But after I start to using Ai 2017, I got error as bellow. Not every time, but it happen a lot.

Is there anyone can help me to fix this?

I wish all of you have wonderful days.

Thank you.

This topic has been closed for replies.

1 reply

pixxxelschubser
Community Expert
Community Expert
January 8, 2019

What for an error?

Participating Frequently
January 9, 2019

As you can see before and after,

embeded images are moved, rescale and arranged to top.

It should be same as before i run script to embed all images.

renél80416020
Inspiring
January 9, 2019

Hi !

Embeds this art in the

document. Converts the art

to art item objects as

needed and deletes this

object.

LR