Highlighted

Indesing Applescript exporting large files

New Here ,
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

31

Likes

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

Indesing Applescript exporting large files

New Here ,
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

32

Likes

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

Likes

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
Reply
Loading...
Oct 13, 2020 0
rob day LATEST
Adobe Community Professional ,
Oct 13, 2020

Copy link to clipboard

Copied

Can you post the problem code?

 

Likes

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
Reply
Loading...
Oct 13, 2020 0