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

Indesing Applescript exporting large files

New Here ,
Oct 13, 2020 Oct 13, 2020

Copy link to clipboard

Copied

Hello, I have an Applescript who create and export large files. After that process, then my Applescript should continue other processes on the exported file. The problem is that seems the Applescript go to the next command line before the exporting process from Indesign is ended.

 

There is some trick to pause the Applescript until the exporting process from Indesign is done?

 

TOPICS
Import and export , Scripting

Views

112

Translate

Translate

Report

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
Participant ,
Oct 13, 2020 Oct 13, 2020

Copy link to clipboard

Copied

Hi. There are several historical ways people cope with this scenario: 1) The delay command will pause for user-specified number of seconds; 2) Go into a loop measuring the size of the output file in the Finder every X seconds – when it stops growing in size for a while it must be finished, so exit loop; 3) If you know that some bits will occur at the end of the file, eg, "</html>", you could do a loop to check for that bit's existence in the file. But maybe there are other ways nowadays.

Votes

Translate

Translate

Report

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 Expert ,
Oct 13, 2020 Oct 13, 2020

Copy link to clipboard

Copied

LATEST

Can you post the problem code?

 

Votes

Translate

Translate

Report

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