Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Community Beginner ,
Jan 08, 2019 Jan 08, 2019

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.

TOPICS
Scripting
809
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Jan 08, 2019 Jan 08, 2019

What for an error?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 09, 2019 Jan 09, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jan 09, 2019 Jan 09, 2019

Hi !

Embeds this art in the

document. Converts the art

to art item objects as

needed and deletes this

object.

LR

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 09, 2019 Jan 09, 2019

renél80416020,

I can not understand what you mean...

I'm asking to fix script that I used.

It's just about embed objects on artwork before I release to vender.

And if I have to convert objects manually before I run that script, there is no reason to run scripts.

It's for saving time and energy to select each objects and embed again and again

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jan 13, 2019 Jan 13, 2019

Salut https://forums.adobe.com/people/yong%20jc98868196

Difficile de répondre, de quel type sont les d'images ?

Tu peux me faire parvenir l'exemple par mail mon adresse est sous mon profil pour faire un test.

(enregistré sous la version CS6)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 14, 2019 Jan 14, 2019

Thank you for your kindness but its my company's file so I can not send you.

This is image of screenshot what I'm talking about.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jan 14, 2019 Jan 14, 2019

Salut,

Alors un autre exemple créé pour l'occasion avec la même erreur.

Le script est correct il n'y a pas de modification à apporter.

elleere

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 15, 2019 Jan 15, 2019
LATEST

This is not first time and it happend to many of my coworkers...

It seems like old error that adobe doesn't care.

Thank you.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 09, 2019 Jan 09, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines