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

Script exports document before it is fully loaded?

Guest
Jul 22, 2010 Jul 22, 2010

Hey guys,

i wrote a little script that opens a document, checks some paragraphs and the it export

the doc to a PDF.

My problem is the the document contains a big linked Illustrator-File and my script runs

the export before the Illustrator-File is loaded...so the graphic-frame is empty in the PDF.

(When i insert a little alert before export the doc then the script works perfectly...but thats not the solution...)

Does anyone has an idea how i can wait till all linked files are loaded?

Thx all!

TOPICS
Scripting
595
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
Engaged ,
Jul 22, 2010 Jul 22, 2010

Use recompose method.

app.activeDocument.recompose();

Shonky

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
Guest
Jul 22, 2010 Jul 22, 2010

Sorry but this has not solved the Problem, frames with Illustrator-Content are still empty in the PDF...

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
Advisor ,
Jul 22, 2010 Jul 22, 2010

Hey!

Try this:

$.sleep(2000);

This will pause script executing, maybe it will help.

tomaxxi

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
LEGEND ,
Jul 22, 2010 Jul 22, 2010
LATEST

I'm afraid that your only real solution will be APID... http://www.rorohiko.com/wordpress/indesign-downloads/active-page-item-developer/

Harbs

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