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?
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.
Copy link to clipboard
Copied
Can you post the problem code?