InDesign CC - 'Wait For Task' query ...

Hi All,

I’ve written a script for exporting pdfs from InDesign CC docs.

All appears to be working fine apart from one slight niggle, occasionally the export process seems to get ahead.

I’ve been trying to use ‘wait for task’ and ‘wait for all tasks’ but as yet haven’t managed to sort it. I’ve also referred to the scripting guide but still no luck.

Please can someone point me in the right direction regarding it’s usage.

Thanks in advance.

I’ve tried setting up a number of large exports in the background and then executing this:-

tell application "Adobe InDesign CC 2014"
	set bgTaskList to background tasks
end tell

I get a list of the ‘background tasks’ by id but there’s an error getting any of the properties?

Can anyone shed any light on this?