Page 1 of 1

Running an InDesign Script

PostPosted: Wed May 30, 2018 1:26 pm
by Stuarth64
Hi, I am very impressed with the reviews of Hazel and believe it may be the solution for a workflow that calls an InDesign script. The workflow would scan for any new job folders added to a current date folder within a main watched folder. This would then run the InDesign script (via applescript I presume).

Because the script could take a while to complete it's task and other folders may have been added during this time, I am wondering if Hazel will try and run multiple instances of the script or will it queue the 'triggers' in order to run the script again once it has finished. Is there a way to tell if the InDesign script is currently running?

Any help or advice on this would be much appreciated.

Re: Running an InDesign Script

PostPosted: Thu May 31, 2018 11:21 am
by Mr_Noodle
Hazel processes each file in sequence. Depending on the script's interactions with InDesign, it might return before InDesign is finished. You would need to add a mechanism to check on InDesign and wait until it's done in that case. Check some AppleScript sites on this as it may be a bit more involved.