Quantcast
Channel: Adobe Community : Popular Discussions - Illustrator Scripting
Viewing all articles
Browse latest Browse all 12845

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

$
0
0

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.


Viewing all articles
Browse latest Browse all 12845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>